示例#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);
 }
示例#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);
     }
 }