コード例 #1
0
 public void BuildGridObjectPress()
 {
     if (gridObject.CanBuild(Vector2.zero) && MoneyController.CanBuy(cost))
     {
         GridObject grid_object = gridObject.CreateGridObject();
         MoneyController.Buy(cost, grid_object);
         buildingSmoke.StartSmoke(gridObject);
     }
     else
     {
         print("no build");
     }
 }