示例#1
0
        protected void OnTriggerEnter2D(Collider2D collision)
        {
            beam = collision.GetComponent <AIDecisionFireBeam>();

            if (beam != null)
            {
                StartCoroutine(TurnBeamOn());
            }
        }
示例#2
0
 /// <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>();
 }