示例#1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Fall")
     {
         mcc.Jump();
     }
 }
示例#2
0
    private void ControllerBike()
    {
        /*
         * if (!gm.isGameStart)
         *  return;
         */
        mcc.accelerate = accelerateInput.isDown;
        mcc.brake      = breakInput.isDown;
        mcc.left       = rollLeftInput.isDown;
        mcc.right      = rollRightInput.isDown;

        if (accelerateInput.isTap)
        {
            BoostGear();
            accelerateInput.ReTapPad();
        }

        if (jumpInput.isDown)
        {
            mcc.Jump();
        }
    }