示例#1
0
 public void startContruction()
 {
     if (GeneralMethod.checkRes(build.GO.GetComponent <HelperBuilding>().getCost()))
     {
         if (Connection.check(RequestType.Build, build.GO.name))
         {
             Player.buildings.Add(build);
             //spawn cantiere , timer, ecc ecc
         }
     }
     else
     {
         //non hai abbastanza risorse
     }
     buildingProces = false;
 }