diff --git a/Assets/Script/InventoryManager.cs b/Assets/Script/InventoryManager.cs index 39d328d..6769b5c 100644 --- a/Assets/Script/InventoryManager.cs +++ b/Assets/Script/InventoryManager.cs @@ -322,6 +322,17 @@ public class InventoryManager : MonoBehaviour return true; } + public void ClearBoard() + { + for (int i = 0; i < 25; i++) + { + if(plots[i].treePlaced != TreeType.Nothing) + DeleteTreeAt(i); + + plots[i].treePlaced = TreeType.Nothing; + } + } + public void StartDraggin(int index) { if (items[index].count > 0)