Added basic jump mechanic for slimes and prevention from going over the border, added tile hiding to increase performance
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user