Ejemplo n.º 1
0
 public override void exitState(StateBase stateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
 }
        public override void updateState(StateBase stateBase, Animator animator, AnimatorStateInfo stateInfo)
        {
            Controller controller = stateBase.getController(animator);

            animator.SetInteger(stateBase.getAnimatorHashCodes().environment, controller.env.GetHashCode());
        }
Ejemplo n.º 3
0
 public abstract void exitState(StateBase stateBase, Animator animator, AnimatorStateInfo stateInfo);
Ejemplo n.º 4
0
 public override void enterState(StateBase stateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     Destroy(animator.gameObject);
 }
Ejemplo n.º 5
0
        public override void updateState(StateBase stateBase, Animator animator, AnimatorStateInfo stateInfo)
        {
            Explosion explosion = animator.gameObject.GetComponent <Explosion>();

            animator.SetInteger(stateBase.getAnimatorHashCodes().projectile, explosion.projectileType.GetHashCode());
        }
Ejemplo n.º 6
0
        public override void updateState(StateBase stateBase, Animator animator, AnimatorStateInfo stateInfo)
        {
            Projectile projectile = animator.gameObject.GetComponent <Projectile>();

            animator.SetInteger(stateBase.getAnimatorHashCodes().projectile, projectile.getProjectileType().GetHashCode());
        }
Ejemplo n.º 7
0
        // OnStateUpdate is called on each Update frame between OnStateEnter and OnStateExit callbacks
        public override void updateState(StateBase stateBase, Animator animator, AnimatorStateInfo stateInfo)
        {
            Controller controller = stateBase.getController(animator);

            checkToDrop(animator, controller, stateBase.getAnimatorHashCodes());
        }
Ejemplo n.º 8
0
 public override void enterState(StateBase stateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     Controller controller = stateBase.getController(animator);
 }