/// <summary> /// /// </summary> /// <returns>Is Level Finish</returns> public bool MoveNextRoom() { CurrentIndex++; if (CurrentIndex > Config.Rooms.Count) { CurrentRoom = null; return(true); } CurrentRoom = Config.Rooms[CurrentIndex - 1]; return(false); }
public void LoadLevelConfig(GameLevelConfig cfg) { Config = cfg; CurrentIndex = 0; CurrentRoom = null; }
public void AddRoom(RoomBaseConfig room) { Rooms.Add(room); }