void Start() { MenuPanel.SetActive(false); foreach (GameObject option in MenuOptions) { option.SetActive(false); } pokemonTeam = GameObject.FindObjectOfType <TrainerTeam> (); }
void Awake() { if (instance == null) { instance = this; } else { Destroy(transform.root.gameObject); } //DontDestroyOnLoad (transform.root.gameObject); }
// 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); }