Esempio n. 1
0
    void Awake()
    {
        GameObject _obj = GameObject.Find("PlayerObject");

        _actor               = _obj.GetComponent("BaseActor") as BaseActor;
        _currentSpeed        = _actor.GetMoveSpeed();
        _characterController = _obj.GetComponent("CharacterController") as CharacterController;
    }
Esempio n. 2
0
 public void StopSprint()
 {
     _currentSpeed = _actor.GetMoveSpeed();
 }