Esempio n. 1
0
 public Floor generateNewFloor()
 {
     try
     {
         reset();
         CurrentFloor = new Floor(DgParam.MaxMapSize);
         SplitFloorRect = CurrentFloor.getSplitArea(3, 3);
         floorGeneration();
         //obj.StartCoroutine(debugFloorGeneration());
         return CurrentFloor;
     }
     catch (Exception ex) {
         Debug.LogException(ex);
         return null;
     }
 }