protected void MoveToPoint(EnemyPoint point, float time) { _endMovePosition = point.Point.position; point.OccupyPoint(this); StopOccupyingActualPoint(); _actualPoint = point; _startMovePosition = transform.position; _currentLevelHandler.ChangeStateOfEnemy(Enemy, EnemyBehaviourState.Idle); State = EnemyBehaviourState.MovingToPoint; _timeToMove = time; _idleTimer = 0; _moveTimer = 0; }