Example #1
0
    override public void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {
        if (!unitControl)
        {
            unitControl = animator.gameObject.GetComponent <UnitControl>();
        }

        unitControl.DefenseComplete();
    }