mirror of
https://github.com/nothke/quality-control.git
synced 2025-08-29 23:13:43 +00:00
Reworking item spawn, adding item conversion.
This commit is contained in:
@@ -14,7 +14,7 @@ public class ProductSpawner : MonoBehaviour
|
||||
public struct ProductionPhase
|
||||
{
|
||||
public ProductionPhaseType Type;
|
||||
public ProductDescription Description;
|
||||
public ProductType ProductType;
|
||||
[Min(1f)]
|
||||
public float Duration;
|
||||
[Min(1f)]
|
||||
@@ -62,7 +62,7 @@ public class ProductSpawner : MonoBehaviour
|
||||
|
||||
_spawnTimer = currentPhase.SpawnInterval;
|
||||
|
||||
Instantiate(currentPhase.Description.GetRandomProduct(), transform.position, Quaternion.identity);
|
||||
ProductType.SpawnProduct(currentPhase.ProductType, transform);
|
||||
}
|
||||
|
||||
if (_remainingDuration <= 0)
|
||||
|
Reference in New Issue
Block a user