コード例 #1
0
ファイル: AddRoom.cs プロジェクト: cdunham927/7DRL
    public void ChangeRoom(RoomTypes type)
    {
        templates.RemoveRoomType(type);
        roomType = type;
        Destroy(thisRoomsSprite);

        foreach (SpriteRenderer rend in banners)
        {
            rend.sprite = templates.bannerSprites[(int)roomType];
        }
        Invoke("SpawnInitial", 1f);

        if (type == RoomTypes.boss || type == RoomTypes.bosskey)
        {
            //Check for other stuff in the room
            if (chest != null)
            {
                chest.SetActive(false);
            }
            shopParent.SetActive(false);
            if (healObj != null)
            {
                healObj.SetActive(false);
            }
        }
    }