Example #1
0
    public void SetDungeon(DungeonMap dungeon, bool updateCamera = true)
    {
        dungeonUnity.SetDungeon(dungeon);

        if (updateCamera)
        {
            cameraFollowEntity.entity = dungeonUnity.avatar;
            cameraMap.entity          = dungeonUnity.avatar;

            cameraFollowEntity.gameObject.SetActive(true);
            cameraMap.gameObject.SetActive(false);

            dungeonBook.DrawOldDungeon(dungeon);
        }
    }