add Puzzle A variants

This commit is contained in:
2022-11-22 00:10:26 +01:00
parent 7244ab470c
commit 593379dd36
66 changed files with 1524 additions and 882 deletions

View File

@@ -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) =>
{