示例#1
0
    public void DestroyBuilding()
    {
        //Have the tile remove it's reference to this building
        myReceiverTile.ClearReceivedBuilding();

        //Remove from the buildings list
        Buildings.instance.RemoveBuildingFromList(ID);

        //And destroy instantiated prefab
        DestroyImmediate(GO_building);
    }