public void DestroyStructure()
 {
     costs.Refund(costs.land); // give back the money on canceling building
     // mobileTouchCamera.lockCamera = false;
     Destroy(GO);
     destroyToggle = true;
 }
示例#2
0
 public void DestroyBuilding()
 {
     Cursor.visible = true;
     SoundManager.instance.PlaySingle(cancelBuilding, 0.3f);
     costs.Refund(costs.currentlySelectedBuildingCost); // give back the money on canceling building
     mobileTouchCamera.lockCamera = false;
     Destroy(GO);
 }