internal void Initialize(ILeash leash, float ceenterY) { if (null == Model || null == _view) { throw new Exception("PersonController is not ready. "); } _view.transform.position = Model.InitPosition; _personMover = new PersonMover(leash, Model.RotationSpeed); _ceenterY = ceenterY; }
internal PersonMover(ILeash leash, float rotationSpeed) { _leash = leash; _currentPoint = _leash.GetLastPoint(); }