public void Climb(bool climb) { _isClimbing = climb; if (playerCont == null) { playerCont = GetComponent <UnityStandardAssets.Characters.FirstPerson.FirstPersonController>(); } if (playerCont != null) { playerCont.Climb(_isClimbing); } }
public void Climb(bool climb) { _isClimbing = climb; if (playerCont == null) { playerCont = GetComponent <UnityStandardAssets.Characters.FirstPerson.FirstPersonController>(); } if (playerCont != null) { playerCont.Climb(_isClimbing); } }