Added basic jump mechanic for slimes and prevention from going over the border, added tile hiding to increase performance

This commit is contained in:
finnchen123
2025-11-16 20:56:51 +01:00
parent c00a01c8d6
commit a8cca74fc4
10 changed files with 136 additions and 33 deletions

View File

@@ -29,6 +29,16 @@ public class Tile : MonoBehaviour
}
public void show()
{
gameObject.SetActive(true);
}
public void hide()
{
gameObject.SetActive(false);
}
public void generateContent()
{
foreach (Vector3 position in getSpawnLocations())