mirror of
https://github.com/nothke/quality-control.git
synced 2025-09-01 08:03:43 +00:00
More tuning
This commit is contained in:
@@ -6,6 +6,8 @@ public class ProductSpawner: MonoBehaviour
|
||||
public List<Transform> PossibleOrientations;
|
||||
public Vector2 yRotation;
|
||||
|
||||
public AudioClip spawnClip;
|
||||
|
||||
public void SpawnProduct(ProductType type)
|
||||
{
|
||||
var randomIndex = Random.Range(0, PossibleOrientations.Count);
|
||||
@@ -15,6 +17,7 @@ public class ProductSpawner: MonoBehaviour
|
||||
randomOrientation.rotation;
|
||||
|
||||
ProductType.SpawnProduct(type, transform, randomOrientation.position, rotation);
|
||||
NAudio.Play(spawnClip, transform.position);
|
||||
}
|
||||
|
||||
public void SpawnProduct(ProductType type, DefectType defect)
|
||||
|
Reference in New Issue
Block a user