Exemple #1
0
        void Update()
        {
            animator.SetFloat("Vertical Velocity", controller.rigidbody2d.velocity.y);

            if (isInCombat && Time.time >= combatResetTime)
            {
                isInCombat = false;
            }

            playerStateName = playerState.GetType().Name;
            playerState.DoStateBehaviour();
            playerState.Transitions();
        }
Exemple #2
0
 void Update()
 {
     playerState.DoStateBehaviour();
     playerState.Transitions();
 }