minigame hole dokončeno
This commit is contained in:
@@ -24,10 +24,10 @@ public class ObjectSpawner : MonoBehaviour
|
||||
public float holeMoveSpeed = 2f;
|
||||
|
||||
[Header("Spawn hranice (odpovídají kameře)")]
|
||||
public float minX = -3.5f;
|
||||
public float maxX = 3.5f;
|
||||
public float minY = -5f;
|
||||
public float maxY = 4f;
|
||||
public float minX = 1f;
|
||||
public float maxX = 1f;
|
||||
public float minY = 0f;
|
||||
public float maxY = 1f;
|
||||
|
||||
|
||||
private List<GameObject> spawnedObjects = new List<GameObject>();
|
||||
@@ -94,6 +94,7 @@ public class ObjectSpawner : MonoBehaviour
|
||||
|
||||
spawnedObjects.Add(obj);
|
||||
}
|
||||
Time.timeScale = 1f;
|
||||
}
|
||||
|
||||
public void Clear()
|
||||
@@ -107,8 +108,8 @@ public class ObjectSpawner : MonoBehaviour
|
||||
Vector3 RandomPos(float margin)
|
||||
{
|
||||
return new Vector3(
|
||||
Random.Range(minX + margin, maxX - margin),
|
||||
Random.Range(minY + margin, maxY - margin),
|
||||
-2.24f,//Random.Range(minX + margin, maxX - margin),
|
||||
0f,//Random.Range(minY + margin, maxY - margin),
|
||||
0.5f
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user