Ejemplo n.º 1
0
 public void TryMoveToPos(Vector3 position)
 {
     if (!_isInit)
     {
         return;
     }
     _moveable?.MoveToPositon(position, State.Order);
 }
Ejemplo n.º 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);
        }