コード例 #1
0
 public override void exitState(StateBase stateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
 }
コード例 #2
0
        public override void updateState(StateBase stateBase, Animator animator, AnimatorStateInfo stateInfo)
        {
            Controller controller = stateBase.getController(animator);

            animator.SetInteger(stateBase.getAnimatorHashCodes().environment, controller.env.GetHashCode());
        }
コード例 #3
0
ファイル: StateData.cs プロジェクト: CalebADB/GrappleRepo
 public abstract void exitState(StateBase stateBase, Animator animator, AnimatorStateInfo stateInfo);
コード例 #4
0
 public override void enterState(StateBase stateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     Destroy(animator.gameObject);
 }
コード例 #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());
        }
コード例 #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());
        }
コード例 #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());
        }
コード例 #8
0
 public override void enterState(StateBase stateBase, Animator animator, AnimatorStateInfo stateInfo)
 {
     Controller controller = stateBase.getController(animator);
 }