コード例 #1
0
ファイル: StateData.cs プロジェクト: CalebADB/RuinsOfRetoRepo
 public void checkToStand(Animator animator, Controller controller, AnimatorHashCodes animatorHashCodes)
 {
     if (!controller.drop)
     {
         animator.SetBool(animatorHashCodes.dropping, false);
     }
 }
コード例 #2
0
ファイル: StateData.cs プロジェクト: CalebADB/RuinsOfRetoRepo
 public void checkToDrop(Animator animator, Controller controller, AnimatorHashCodes animatorHashCodes)
 {
     if (controller.drop)
     {
         animator.SetBool(animatorHashCodes.dropping, true);
     }
 }
コード例 #3
0
ファイル: StateData.cs プロジェクト: CalebADB/GrappleRepo
 public void checkToIdle(Animator animator, Controller controller, AnimatorHashCodes animatorHashCodes)
 {
     // checks to see if movement has/is stopped
     if (!controller.moveRight ^ controller.moveLeft)
     {
         animator.SetBool(animatorHashCodes.moving, false);
     }
 }
コード例 #4
0
ファイル: StateData.cs プロジェクト: CalebADB/GrappleRepo
 public void checkToFall(Animator animator, Controller controller, AnimatorHashCodes animatorHashCodes)
 {
     // checks for upward/rise/jump input
     if (!controller.localPhysicsEngine.localCollisionManager.collisionData.bottomCollision)
     {
         animator.SetBool(animatorHashCodes.collidedDown, false);
     }
 }
コード例 #5
0
ファイル: StateData.cs プロジェクト: CalebADB/GrappleRepo
 public void checkToJump(Animator animator, Controller controller, AnimatorHashCodes animatorHashCodes)
 {
     // checks for upward/rise/jump input
     if (controller.rise)
     {
         animator.SetBool(animatorHashCodes.jumping, true);
     }
 }
コード例 #6
0
ファイル: StateData.cs プロジェクト: CalebADB/GrappleRepo
 // accessible functions for all States
 public void checkToMove(Animator animator, Controller controller, AnimatorHashCodes animatorHashCodes)
 {
     // checks for movement input
     if (controller.moveRight ^ controller.moveLeft)
     {
         animator.SetBool(animatorHashCodes.moving, true);
     }
 }
コード例 #7
0
ファイル: StateBase.cs プロジェクト: CalebADB/RuinsOfRetoRepo
 public AnimatorHashCodes getAnimatorHashCodes()
 {
     if (animatorHashCodes == null)
     {
         animatorHashCodes = GameObject.Find("HashCodes").GetComponent <AnimatorHashCodes>();
     }
     return(animatorHashCodes);
 }
コード例 #8
0
        public void start()
        {
            getLocalPhysicsEngine();
            animator = getAnimator();
            animatorHashCodes = GameObject.FindObjectOfType<AnimatorHashCodes>();

            localPhysicsEngine.JumpStart_Event += JumpStart;
            localPhysicsEngine.HitTop_Event += HitTop;
            localPhysicsEngine.HitBottom_Event += HitBottom;
            localPhysicsEngine.HitRight_Event += HitRight;
            localPhysicsEngine.HitLeft_Event += HitLeft;
        }
コード例 #9
0
ファイル: StateData.cs プロジェクト: CalebADB/GrappleRepo
 public void checkToDrop(Animator animator, Controller controller, AnimatorHashCodes animatorHashCodes)
 {
     Debug.Log("Im an empty function:)");
 }
コード例 #10
0
 public void start()
 {
     getLocalPhysicsEngine();
     animator          = getAnimator();
     animatorHashCodes = GameObject.FindObjectOfType <AnimatorHashCodes>();
 }