Example #1
0
 void Start()
 {
     MenuPanel.SetActive(false);
     foreach (GameObject option in MenuOptions)
     {
         option.SetActive(false);
     }
     pokemonTeam = GameObject.FindObjectOfType <TrainerTeam> ();
 }
Example #2
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(transform.root.gameObject);
     }
     //DontDestroyOnLoad (transform.root.gameObject);
 }
Example #3
0
 // Adds listeners to the color sliders and calls the initialize script on the library
 void Start()
 {
     addrCanvas.SetActive(true);
     pokemonTeam = GameObject.FindObjectOfType <TrainerTeam> ();
     base.initialize(this.gameObject.name);
 }