void Awake() { GameObject _obj = GameObject.Find("PlayerObject"); _actor = _obj.GetComponent("BaseActor") as BaseActor; _currentSpeed = _actor.GetMoveSpeed(); _characterController = _obj.GetComponent("CharacterController") as CharacterController; }
public void StopSprint() { _currentSpeed = _actor.GetMoveSpeed(); }