public void checkToStand(Animator animator, Controller controller, AnimatorHashCodes animatorHashCodes) { if (!controller.drop) { animator.SetBool(animatorHashCodes.dropping, false); } }
public void checkToDrop(Animator animator, Controller controller, AnimatorHashCodes animatorHashCodes) { if (controller.drop) { animator.SetBool(animatorHashCodes.dropping, true); } }
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); } }
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); } }
public void checkToJump(Animator animator, Controller controller, AnimatorHashCodes animatorHashCodes) { // checks for upward/rise/jump input if (controller.rise) { animator.SetBool(animatorHashCodes.jumping, true); } }
// 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); } }
public AnimatorHashCodes getAnimatorHashCodes() { if (animatorHashCodes == null) { animatorHashCodes = GameObject.Find("HashCodes").GetComponent <AnimatorHashCodes>(); } return(animatorHashCodes); }
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; }
public void checkToDrop(Animator animator, Controller controller, AnimatorHashCodes animatorHashCodes) { Debug.Log("Im an empty function:)"); }
public void start() { getLocalPhysicsEngine(); animator = getAnimator(); animatorHashCodes = GameObject.FindObjectOfType <AnimatorHashCodes>(); }