private void FixedUpdate() { if (!change) { if (c_stun == 0) { // Read the inputs. bool crouch = CrossPlatformInputManager.GetButton("down"); //float h = CrossPlatformInputManager.GetAxis("Horizontal"); float h = 0; if (CrossPlatformInputManager.GetButton("left")) { h--; } if (CrossPlatformInputManager.GetButton("right")) { h++; } //move operation m_Character.Move(h, crouch, m_Jump, b_Jump); } else { //forced backward m_Character.Backward(b_back_left); } //counter update if (c_stun > 0) { c_stun--; } } m_Jump = false; b_Jump = false; }