Example #1
0
    public void Climb(bool climb)
    {
        _isClimbing = climb;

        if (playerCont == null)
        {
            playerCont = GetComponent <UnityStandardAssets.Characters.FirstPerson.FirstPersonController>();
        }

        if (playerCont != null)
        {
            playerCont.Climb(_isClimbing);
        }
    }