Esempio n. 1
0
 public static DungeonManagerNew GetInstance(string Id)
 {
     if (instance == null)
     {
         instance = new DungeonManagerNew(Id);
     }
     return(instance);
 }
 void Start()
 {
     dungeonInfo    = DungeonManagerNew.GetInstance("Stage1_1");
     dungeonControl = new DungeonControlNew();
     dungeonControl.InitializeDungeon(dungeonInfo.GetDungeonInfo());
     CreateNewRoom();
     CreateCoridor();
     SetMapSize();
 }
Esempio n. 3
0
    void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }

        else if (instance != this)
        {
            Destroy(gameObject);
        }
        DontDestroyOnLoad(gameObject);

        boardScript = GetComponent <DungeonManagerNew>();
    }