Beispiel #1
0
    public void HandleAttackHitAnimationEvent()
    {
        if (!this.attackTargetGameObject)
        {
            this.ChooseAttackTarget();
            return;
        }

        UnitBehavior targetBehavior = this.attackTargetGameObject.GetComponent <UnitBehavior>();

        if (targetBehavior)
        {
            targetBehavior.TakeHit(30);
        }
    }