change terminal light name to not override internal name

This commit is contained in:
2022-11-20 12:53:49 +01:00
parent 2d6c3b67fd
commit 70da016649
2 changed files with 7 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ namespace EscapeRoomEngine.Desert.Runtime.Puzzle_A
{
private static readonly int LightFlash = Animator.StringToHash("Light Flash");
[BoxGroup("Internal")] [Required] public Emission light;
[BoxGroup("Internal")] [Required] public Emission terminalLight;
[BoxGroup("Internal")] public List<SymbolButton> symbols;
private Animator _animator;
@@ -28,15 +28,15 @@ namespace EscapeRoomEngine.Desert.Runtime.Puzzle_A
switch (type)
{
case PuzzleEventType.Restarted:
light.color = theme.puzzleColor;
terminalLight.color = theme.puzzleColor;
symbols.ForEach(symbol => symbol.Enable());
break;
case PuzzleEventType.Solved:
light.color = theme.solvedColor;
terminalLight.color = theme.solvedColor;
symbols.ForEach(symbol => symbol.Disable());
break;
case PuzzleEventType.WrongInput:
light.color = theme.puzzleColor;
terminalLight.color = theme.puzzleColor;
_animator.SetTrigger(LightFlash);
break;
default:
@@ -49,12 +49,12 @@ namespace EscapeRoomEngine.Desert.Runtime.Puzzle_A
public void TurnOnRingLight()
{
light.active = true;
terminalLight.active = true;
}
public void TurnOffRingLight()
{
light.active = false;
terminalLight.active = false;
}
}
}