DynamicColor, Crystal prefab, Finish Puzzle B
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
using EscapeRoomEngine.Engine.Runtime.Modules;
|
||||
using EscapeRoomEngine.Engine.Runtime.Utilities;
|
||||
using NaughtyAttributes;
|
||||
using UnityEngine;
|
||||
|
||||
namespace EscapeRoomEngine.Desert.Runtime.Puzzle_A
|
||||
{
|
||||
@@ -9,7 +9,7 @@ namespace EscapeRoomEngine.Desert.Runtime.Puzzle_A
|
||||
[BoxGroup("Internal")] [Required] public Emission statusLight;
|
||||
[BoxGroup("Internal")] [Required] public Ring ring;
|
||||
|
||||
private Color _puzzleColor, _solvedColor;
|
||||
private DynamicColor _puzzleColor, _solvedColor;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
@@ -29,7 +29,7 @@ namespace EscapeRoomEngine.Desert.Runtime.Puzzle_A
|
||||
{
|
||||
_active = value;
|
||||
|
||||
statusLight.color = _active ? _puzzleColor : _solvedColor;
|
||||
statusLight.color = _active ? _puzzleColor.hdr : _solvedColor.hdr;
|
||||
ring.rotating = _active;
|
||||
if (!_active)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user