|
|
@ -31,6 +31,9 @@ public class GameManager { |
|
|
|
if(time == 300) { |
|
|
|
spawnCherry(); |
|
|
|
} |
|
|
|
if (time == 600) { |
|
|
|
destroyCherry(); |
|
|
|
} |
|
|
|
time++; |
|
|
|
} |
|
|
|
|
|
|
@ -38,6 +41,10 @@ public class GameManager { |
|
|
|
map.GetCell(map.playerSpawn).type = "cherry"; |
|
|
|
} |
|
|
|
|
|
|
|
public void destroyCherry() { |
|
|
|
map.GetCell(map.playerSpawn).type = "empty"; |
|
|
|
} |
|
|
|
|
|
|
|
public void ProcessInput(char inputChar) { |
|
|
|
if(inputChar == 27) { |
|
|
|
//todo: escape key pauses game |
|
|
|