Ejemplo n.º 1
0
 public virtual int MoveTarget(int direction)
 {
     if (LockedTargets.Contains(direction) && (GameManager.instance.GetLevel(EntryLevel).BestScore == 0 && !GameManager.debugMode))
     {
         return(-1);
     }
     if (TargetIds[direction] != -1)
     {
         return(TargetIds[direction]);
     }
     return(-1);
 }
Ejemplo n.º 2
0
 public void AttemptToRemoveEntity(GameObject ObjectToRemove)
 {
     if (LockedTargets.Contains(ObjectToRemove))
     {
         LockedTargets.Remove(ObjectToRemove);
         LockedEntities.Remove(ObjectToRemove);
     }
     else if (LockedEntities.Contains(ObjectToRemove))
     {
         LockedEntities.Remove(ObjectToRemove);
     }
     else if (LockedMissiles.Contains(ObjectToRemove))
     {
         LockedMissiles.Remove(ObjectToRemove);
     }
 }
Ejemplo n.º 3
0
 protected override void AddNewEntity(EnergySignal TargetES)
 {
     if (!LockedEntities.Contains(TargetES.gameObject))
     {
         if (MyEnergySignal.GetEnemyFactions.Contains(TargetES.GetTeamSignal))
         {
             if (TargetES.MySignalType == EnergySignal.SignalObjectType.Missile)
             {
                 LockedMissiles.Add(TargetES.gameObject);
             }
             else
             {
                 LockedEntities.Add(TargetES.gameObject);
                 LockedTargets.Add(TargetES.gameObject);
             }
         }
         else if (TargetES.MySignalType != EnergySignal.SignalObjectType.Missile)
         {
             LockedEntities.Add(TargetES.gameObject);
         }
     }
 }