refactor: simplify instantiate prefabs (#41)

This commit is contained in:
2025-03-03 11:55:22 +01:00
committed by GitHub
parent f305cd6c1f
commit 7fd8691033
4 changed files with 8 additions and 25 deletions

View File

@ -6,13 +6,7 @@ using System.Runtime.Serialization;
[System.Serializable]
public class LevelElement
{
public enum Type
{
Obstacle = 0,
Spike = 1
}
public Type type;
public string type;
public float x;
public float y;
}