Пример #1
0
    internal void DestroyRoom(bool forced = false)
    {
        if (CurrTile == null)
        {
            return;
        }

        if ((!IsIndestructable && RoomScript.IsDestructable()) || forced)
        {
            RoomScript.Destroy();
            CurrTile   = null;
            RoomScript = null;
            if (HideTileIfSubTileExists)
            {
                GetComponent <MeshRenderer>().enabled = true;
            }
        }
    }