add Puzzle A variants
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
using EscapeRoomEngine.Engine.Runtime;
|
||||
using NaughtyAttributes;
|
||||
using UnityEngine;
|
||||
|
||||
namespace EscapeRoomEngine.Desert.Runtime.Puzzle_A
|
||||
{
|
||||
[RequireComponent(typeof(MeshRenderer))]
|
||||
public class SymbolButton : Button
|
||||
{
|
||||
private static readonly int FresnelColor = Shader.PropertyToID("_FresnelColor");
|
||||
@@ -11,12 +11,18 @@ namespace EscapeRoomEngine.Desert.Runtime.Puzzle_A
|
||||
|
||||
public int symbolNumber;
|
||||
public EngineTheme theme;
|
||||
[BoxGroup("Internal")] [Required] public MeshRenderer holoRenderer;
|
||||
|
||||
private Material _material;
|
||||
|
||||
private void Start()
|
||||
private void Awake()
|
||||
{
|
||||
_material = GetComponent<MeshRenderer>().material;
|
||||
_material = holoRenderer.material;
|
||||
}
|
||||
|
||||
protected override void Start()
|
||||
{
|
||||
base.Start();
|
||||
|
||||
ButtonEvent += (_, type) =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user