public void TryMoveToPos(Vector3 position) { if (!_isInit) { return; } _moveable?.MoveToPositon(position, State.Order); }
private void Update() { if (!_moveable.IsReachedDestination) { return; } var randomPoint = Random.insideUnitSphere * 100; _targetPos = new Vector3(randomPoint.x, AllData.I.RtsGameData.RtsShipsPosY, randomPoint.z); _moveable.MoveToPositon(_targetPos); }