symbol buttons

This commit is contained in:
2022-11-20 08:33:27 +01:00
parent d44a03b56e
commit ae1d19455e
18 changed files with 4742 additions and 95 deletions

View File

@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using Escape_Room_Engine.Desert.Scripts;
using Escape_Room_Engine.Engine.Scripts.Modules;
using NaughtyAttributes;
@@ -12,6 +13,7 @@ namespace Escape_Room_Engine.Desert.Modules.Puzzle_A.Scripts
private static readonly int LightFlash = Animator.StringToHash("Light Flash");
[BoxGroup("Internal")] [Required] public Emission light;
[BoxGroup("Internal")] public List<SymbolButton> symbols;
private Animator _animator;
@@ -28,9 +30,11 @@ namespace Escape_Room_Engine.Desert.Modules.Puzzle_A.Scripts
{
case PuzzleEventType.Restarted:
light.color = theme.puzzleColor;
symbols.ForEach(symbol => symbol.Enable());
break;
case PuzzleEventType.Solved:
light.color = theme.solvedColor;
symbols.ForEach(symbol => symbol.Disable());
break;
case PuzzleEventType.WrongInput:
light.color = theme.puzzleColor;