mirror of
https://github.com/zoriya/Magical-Garden.git
synced 2026-06-03 09:15:35 +00:00
Adding restart function.
This commit is contained in:
@@ -60,6 +60,12 @@ public class InventoryManager : MonoBehaviour
|
||||
}
|
||||
draggedPosition = -1;
|
||||
}
|
||||
if (Input.GetKeyDown(KeyCode.R))
|
||||
{
|
||||
ClearBoard();
|
||||
GetComponent<Mission>().GenerateMission();
|
||||
GetComponent<Pokedex>().UpdateMissionText();
|
||||
}
|
||||
}
|
||||
|
||||
private bool CanPlantAt(Vector3 position, TreeItem item)
|
||||
|
||||
@@ -27,7 +27,8 @@ public class Mission : MonoBehaviour {
|
||||
}
|
||||
|
||||
}
|
||||
private void GenerateMission()
|
||||
|
||||
public void GenerateMission()
|
||||
{
|
||||
for (int i = 0; i < difficulte; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user