Ejemplo n.º 1
0
    public void ClearStone()
    {
        stone.Initialize();

        foreach (Transform t in transform)
        {
            Destroy(t.gameObject);
        }
    }
    public void ClearInventory()
    {
        for (int i = 0; i < row; ++i)
        {
            for (int j = 0; j < column; ++j)
            {
                if (Inventory[i, j] != null)
                {
                    GameObject temp = Inventory[i, j];
                    Inventory[i, j] = null;
                    Destroy(temp);
                }
            }
        }

        Inventory.Initialize();
    }