Adding board clear function.

This commit is contained in:
Anonymous Raccoon
2018-08-13 20:15:11 +02:00
parent 1f0a9398f3
commit 665f89954a
+11
View File
@@ -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)