DocSearch.OnEnable C# (CSharp) Méthode

OnEnable() static private méthode

static private OnEnable ( ) : void
Résultat void
	void OnEnable(){	
		if(!initialized){
			initialized=true;
			bevelLineStyle = new GUIStyle();
			bevelLineStyle.normal.background = (Texture2D)Resources.Load("_bevelLine");
			//
			if(File.Exists(Application.dataPath + historyFile)){
				StreamReader sr = new StreamReader(Application.dataPath + historyFile);
				string history = sr.ReadToEnd();
				string[] terms = history.Split(',');
				searchedTerms= new List<string>();
				for (int i = 0; i < terms.Length; i++) {
					searchedTerms.Add(terms[i]);
				}
				sr.Close();
			}
		}
	}