コード例 #1
0
ファイル: GameManager.cs プロジェクト: itai-m/MovingBox
 //Initializes the game for each level.
 public void InitGame()
 {
     level         = RefManager.Instance.level;
     isInMapEditor = RefManager.Instance.mapEditorName.Length != 0;
     if (isInMapEditor)
     {
         boardScript.SetupWithEditorMap(RefManager.Instance.mapEditorName);
     }
     else
     {
         //Call the SetupScene function of the BoardManager script, pass it current level number.
         //boardScript.SetupScene(level);
         boardScript.SetupSceneMap(LevelLoader.GetMap(RefManager.Instance.worldName, level));
     }
 }