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;
 }