Example #1
0
    void OnTriggerStay(Collider player)
    {
        FPSController fpsController = player.GetComponent <FPSController>();

        if (fpsController)
        {
            fpsController.Climb(fpsController.inputDirection.z);
        }
    }