comment pass
This commit is contained in:
@@ -6,13 +6,18 @@ using LogType = EscapeRoomEngine.Engine.Runtime.Utilities.LogType;
|
||||
|
||||
namespace EscapeRoomEngine.Desert.Runtime.Dispenser
|
||||
{
|
||||
/// <summary>
|
||||
/// The main component for the dispenser module.
|
||||
/// </summary>
|
||||
[SelectionBase]
|
||||
[RequireComponent(typeof(Animator), typeof(Emission))]
|
||||
public class Dispenser : ModuleState
|
||||
{
|
||||
private static readonly int Open = Animator.StringToHash("Open");
|
||||
|
||||
[Tooltip("The object this dispenser should produce.")]
|
||||
public Transform dispensable;
|
||||
[Tooltip("The time in seconds to wait until another object can be produced.")]
|
||||
[SerializeField] [Min(0)]
|
||||
private float cooldown;
|
||||
[BoxGroup("Internal")] [SerializeField]
|
||||
@@ -20,6 +25,9 @@ namespace EscapeRoomEngine.Desert.Runtime.Dispenser
|
||||
[BoxGroup("Internal")] [SerializeField]
|
||||
private Button dispenseButton;
|
||||
|
||||
/// <summary>
|
||||
/// The dispenser does not produce any more objects when it is solved and changes colour.
|
||||
/// </summary>
|
||||
public bool Solved
|
||||
{
|
||||
set
|
||||
|
||||
@@ -10,8 +10,12 @@ namespace EscapeRoomEngine.Desert.Runtime.Dispenser
|
||||
public bool[] lights;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This component controls the grid of lights on the dispenser.
|
||||
/// </summary>
|
||||
public class DispenserLights : MonoBehaviour
|
||||
{
|
||||
[Tooltip("Control the pattern of lights on a dispenser.")]
|
||||
[SerializeField]
|
||||
private DispenserLightRow[] lights;
|
||||
[BoxGroup("Internal")] [SerializeField]
|
||||
@@ -23,7 +27,6 @@ namespace EscapeRoomEngine.Desert.Runtime.Dispenser
|
||||
|
||||
private void Start()
|
||||
{
|
||||
var position = transform.localPosition;
|
||||
for (var y = 0; y < gridDimensions.y; y++)
|
||||
{
|
||||
var row = lights[y].lights;
|
||||
|
||||
Reference in New Issue
Block a user