public void EnableSoldierRegion(bool bEnable, SoldierRegion inSoldierRegion) { if ((inSoldierRegion != null) && this.soldierAreas.Contains(inSoldierRegion)) { if (bEnable) { inSoldierRegion.Startup(); } else { inSoldierRegion.Stop(); } } }
public void EnableSoldierRegion(bool bEnable, SoldierRegion inSoldierRegion) { if (inSoldierRegion == null || !this.soldierAreas.Contains(inSoldierRegion)) { return; } if (bEnable) { inSoldierRegion.Startup(); } else { inSoldierRegion.Stop(); } }