mirror of
https://github.com/nothke/quality-control.git
synced 2025-09-01 08:03:43 +00:00
Fixed level loading, added level reset
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Converter: MonoBehaviour
|
||||
public class Converter: MonoBehaviour, IResetable
|
||||
{
|
||||
public List<Product> inputProducts;
|
||||
|
||||
@@ -31,9 +31,16 @@ public class Converter: MonoBehaviour
|
||||
}
|
||||
|
||||
public void Start()
|
||||
{
|
||||
ResetMachine();
|
||||
}
|
||||
|
||||
public void ResetMachine()
|
||||
{
|
||||
_conversionTimer = conversionDuration;
|
||||
CurrentHealth = MaxHealth;
|
||||
|
||||
inputProducts.Clear();
|
||||
}
|
||||
|
||||
public void Update()
|
||||
|
Reference in New Issue
Block a user