예제 #1
0
 public void buildWall()
 {
     if (active.building == null && player.Money >= wall.GetComponent <Wall>().costs)
     {
         active.buildWall();
         player.Money -= wall.GetComponent <Wall>().costs;
     }
     Cancel();
 }