private void Start() { player2Active = false; AllyMovementScript = GameObject.Find("Ally1").GetComponentInChildren <AllyMovementScript>(); GameStatusScript = GameObject.Find("GameStatus").GetComponent <GameStatusScript>(); this.animator = this.gameObject.GetComponent <Animator>(); silenceAvailable = true; silenceTimer = 0f; stunAvailable = true; stunTimer = 0f; }
// Use this for initialization void Start() { timer = 0f; EventManager.StartListening("ENEMY_STUNNED", OnStun); EventManager.StartListening("ENEMY_UNSTUNNED", EndStun); EventManager.StartListening("SILENT_ACTIVATED", KeepThemSecrets); EventManager.StartListening("SILENT_DEACTIVATED", StartTalking); GameStatusScript = GameObject.Find("GameStatus").GetComponent <GameStatusScript>(); lineScript = GameObject.Find("PlayerSoundWave").GetComponent <LineScript>(); }