protected void OnTriggerEnter2D(Collider2D collision) { beam = collision.GetComponent <AIDecisionFireBeam>(); if (beam != null) { StartCoroutine(TurnBeamOn()); } }
/// <summary> /// On init we grab our CharacterHandleWeapon ability /// </summary> protected override void Initialization() { beamAnim = Beam.GetComponent <Animator>(); characterFly = this.gameObject.GetComponent <CharacterFly>(); beamDecision = this.gameObject.GetComponent <AIDecisionFireBeam>(); }