예제 #1
0
 public void UseDigThrough()
 {
     GameObject.Destroy(LastObjectSelected);
     cubeManager.GenerateUndergroundElement(10, (int)Math.Floor(LastObjectSelected_x), (int)Math.Floor(LastObjectSelected_z));
     cubeManager.Map[(int)Math.Floor(LastObjectSelected_x)][(int)Math.Floor(LastObjectSelected_z)] = 10;
     cubeManager.UpdateTheVisibleArea();
     cubeManager.saveAndLoad.UpdateCityData(10, (int)Math.Floor(LastObjectSelected_x) + 1, (int)Math.Floor(LastObjectSelected_z) + 1);
 }