public void TryMoveToPos(Vector3 position)
 {
     if (!_isInit)
     {
         return;
     }
     _moveable?.MoveToPositon(position, State.Order);
 }
예제 #2
0
        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);
        }