// Use this for initialization void Start() { this.col2d = gameObject.GetComponent <Collider2D>(); this.rb2d = gameObject.GetComponent <Rigidbody2D>(); player2Active = false; AllyMovementScript = GameObject.Find("Ally1").GetComponentInChildren <AllyMovementScript>(); this.animator = gameObject.GetComponent <Animator>(); }
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; }