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); }
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); } }