// Use this for initialization void Awake() { presupervisor = GameObject.Find("Presupervisor").GetComponent <supervisorScript> (); soundManager = GameObject.Find("SoundManager").GetComponent <SoundManager> (); foreach (AudioSource audio in soundManager.sourceList) { audio.Stop(); audio.Play(); } playerNbr = presupervisor.number; listOfAvatar = new GameObject[playerNbr]; scores = new int[playerNbr]; listOfAvatarInstantiated = listOfAvatar; //TODO Remove created to play multiple //if (!created) { //DontDestroyOnLoad (this.gameObject); created = true; waitingTime = 120; spawner = new GameObject[4]; for (int i = 0; i < presupervisor.number; i++) { listOfAvatar [i] = presupervisor.players [i]; // } } countdown = GameObject.Find("Countdown").GetComponent <Countdown>(); }
void Start() { Player1.SetActive(false); Player2.SetActive(false); Player3.SetActive(false); Player4.SetActive(false); supervisor = GameObject.Find("Presupervisor").GetComponent <supervisorScript>(); soundManager = GameObject.Find("SoundManager").GetComponent <SoundManager>(); soundManager.GetComponent <AudioSource>().Stop(); // anim = textCantJoin.gameObject.GetComponent<Animator>(); }
void Start() { listeAleatoire = GameObject.Find("Aleatoire").GetComponent <Aleatoire>(); supervisor = GameObject.Find("Presupervisor").GetComponent <supervisorScript>(); soundManager = GameObject.Find("SoundManager").GetComponent <SoundManager>(); }
// Use this for initialization void Start() { buttonA.gameObject.SetActive(false); preSupervisor = GameObject.Find("Presupervisor").GetComponent <supervisorScript>(); }
// Use this for initialization void Start() { StartButton = GameObject.Find("Start"); StartButton.SetActive(false); supervisor = GameObject.Find("Presupervisor").GetComponent <supervisorScript>(); }