예제 #1
0
 void OnPlayerBuildingPlaced(PlayerBuildingPlacedEvent e)
 {
     if (e.BuildingModel is PowerPlant)
     {
         PowerPlants.Add(e.BuildingModel as PowerPlant);
     }
 }
예제 #2
0
 void OnPlayerBuildingPlaced(PlayerBuildingPlacedEvent e)
 {
     Funds -= e.BuildingModel.Cost;
 }