コード例 #1
0
ファイル: BaseTile.cs プロジェクト: zoompower/Hivemind
    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;
            }
        }
    }