public DungeonLevel(IPlayer player, int levelNum)
 {
     FileLoader  = new LevelLoader(1);
     Map         = new Map(levelNum);
     HUD         = new DungeonHUD(this, levelNum);
     Player      = player;
     Rooms       = new List <IRoom>();
     CurrentRoom = new DungeonRoom();
 }
예제 #2
0
    void Awake()
    {
        if (Instance == null)
        {
            Instance = this;
        }
        else if (Instance != this)
        {
            Destroy(gameObject);
        }

        //DontDestroyOnLoad(gameObject);
    }
예제 #3
0
 private void Awake()
 {
     instance = this;
 }