header sprites

This commit is contained in:
2023-02-10 18:02:30 +05:30
parent 8c29a37ac9
commit a99474937b
8 changed files with 451 additions and 25 deletions

View File

@@ -13,6 +13,10 @@ public class LevelGenerator : MonoBehaviour
public Vector2 minDiff, maxDiff;
public Vector3[] points {get; private set;}
public GameObject flagPrefab;
public int GoalDistance= 10;
void Start()
{
@@ -43,6 +47,8 @@ public class LevelGenerator : MonoBehaviour
InsertNewPoint(points[i] + new Vector3(0, -1f));
InsertNewPoint(points[i] + new Vector3(1f, -1f));
InsertNewPoint(points[i] + new Vector3(1f, 0f));
Instantiate(flagPrefab, points[i], Quaternion.identity);
}
}