InitilizeGameVariables









How do I use Initilize Game Variables
Below are practical examples compiled from projects for learning and reference purposes

Featured Snippets


File name: LevelController.cs Copy
12  void Start () {
13   InitilizeGameVariables ();
14  }
File name: LevelController.cs Copy
23  void InitilizeGameVariables(){
24   if(GameController.instance != null){
25    levels = GameController.instance.levels;
26
27    for (int i = 1; i < levels.Length; i++) {
28     if (levels [i]) {
29      levelButtons [i].transform.GetChild (1).transform.gameObject.SetActive (false);
30     } else {
31      levelButtons [i].interactable = false;
32     }
33    }
34   }
35
36  }

InitilizeGameVariables 110 lượt xem

Gõ tìm kiếm nhanh...