header sprites
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user