puzzle module framework, puzzle a ball module

This commit is contained in:
2022-11-18 02:10:05 +01:00
parent bd0934636f
commit 99e0452379
90 changed files with 4799 additions and 51 deletions

View File

@@ -0,0 +1,34 @@
using Escape_Room_Engine.Desert.Scripts;
using NaughtyAttributes;
using UnityEngine;
namespace Escape_Room_Engine.Desert.Modules.Puzzle_A.Scripts
{
[RequireComponent(typeof(EmissionToggle))]
public class Crystal : MonoBehaviour
{
[Required] public Light crystalLight;
public bool Active
{
get => _emission.active;
set
{
_emission.active = value;
crystalLight.enabled = value;
}
}
private EmissionToggle _emission;
private void Awake()
{
_emission = GetComponent<EmissionToggle>();
}
private void Start()
{
Active = false;
}
}
}