コード例 #1
0
    public void BuildFloor()
    {
        Floor floor = InstantiateFloor();

        floor.Build(CreateRandomRooms(), m_floors.Count);

        m_floors.Add(floor);
        dungeonPortal.SetTarget(floor.entrance);
        GameManager.Instance.SaveGame();
    }
コード例 #2
0
    //===
    public void BuildFloor(List <Room> rooms)
    {
        Floor floor = InstantiateFloor();

        floor.Build(rooms, m_floors.Count);

        m_floors.Add(floor);
        dungeonPortal.SetTarget(floor.entrance);
        GameManager.Instance.SaveGame();
    }