comment pass
This commit is contained in:
@@ -8,9 +8,13 @@ using UnityEngine;
|
||||
|
||||
namespace EscapeRoomEngine.Desert.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// The main component for the orb throwing module.
|
||||
/// </summary>
|
||||
[RequireComponent(typeof(Collider))]
|
||||
public class Hoop : StatePuzzle
|
||||
{
|
||||
[Tooltip("How long to wait in seconds until the state is updated. Orbs that do not stay in the hoop should not be counted.")]
|
||||
public float updateDelay;
|
||||
[BoxGroup("Internal")] [SerializeField]
|
||||
private List<Emission> rings;
|
||||
@@ -84,6 +88,7 @@ namespace EscapeRoomEngine.Desert.Runtime
|
||||
{
|
||||
base.SetModule(module);
|
||||
|
||||
// The hoop requires a related dispenser module
|
||||
var firstRelatedModule = Module.relatedModules[0];
|
||||
if (firstRelatedModule.State is Dispenser.Dispenser dispenser)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user