DynamicColor, Crystal prefab, Finish Puzzle B

This commit is contained in:
2022-11-28 23:31:00 +01:00
parent 60e390a993
commit 450c16c94f
63 changed files with 2915 additions and 361 deletions

View File

@@ -1,6 +1,7 @@
using System;
using EscapeRoomEngine.Engine.Runtime.Utilities;
using NaughtyAttributes;
using UnityEngine;
using Logger = EscapeRoomEngine.Engine.Runtime.Utilities.Logger;
using LogType = EscapeRoomEngine.Engine.Runtime.Utilities.LogType;
@@ -27,6 +28,7 @@ namespace EscapeRoomEngine.Engine.Runtime.Modules
public delegate void PuzzleEventHandler(PuzzleModule source, PuzzleEventType e);
[SelectionBase]
public class PuzzleState : ModuleState
{
public event PuzzleEventHandler PuzzleEvent;
@@ -48,6 +50,11 @@ namespace EscapeRoomEngine.Engine.Runtime.Modules
private bool _solved;
protected virtual void Start()
{
OnPuzzleEvent(PuzzleEventType.Restarted);
}
private void OnPuzzleEvent(PuzzleEventType type)
{
Logger.Log(type.Description(Module), LogType.PuzzleFlow);