コード例 #1
0
 void Awake()
 {
     // ----------- only when debugging
     if (object.ReferenceEquals(null, ApplicationModel.currentLevel))
     {
         Level tileDetails = new Level();
         tileDetails.locked = false;
         tileDetails.level = 1;
         tileDetails.parseLevelData();
         ApplicationModel.currentLevel = tileDetails;
     }
     // -------------------------------
     Level levelInfo = ApplicationModel.currentLevel;
     if (object.ReferenceEquals(null, levelInfo)) {
         Application.LoadLevel("select-level");
     }
 }