Example #1
0
        //public void SendEvent(ShipEvenentsType evnt)
        //{
        //    onland?.Invoke(p.SO.id);
        //    Console.WriteLine("onland");

        //}


        #region user commands
        public void SetTarget(SpaceObject newTarget)
        {
            NewTargetToMove  = newTarget;
            NewTargetToAtack = newTarget.Type == TypeSO.ship ? newTarget : null;
            Console.WriteLine("{0} id {1} target to move {2} , target to atack {3}", newTarget.Type, p.Id, NewTargetToMove.Id, NewTargetToAtack.Id);
        }