puzzle module framework, puzzle a ball module
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
using Escape_Room_Engine.Desert.Scripts;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Escape_Room_Engine.Desert.Modules.Puzzle_A.Scripts
|
||||
{
|
||||
[RequireComponent(typeof(EmissionToggle))]
|
||||
public class Symbol : MonoBehaviour
|
||||
{
|
||||
public float anglePosition;
|
||||
|
||||
public bool Active
|
||||
{
|
||||
get => _emission.active;
|
||||
set
|
||||
{
|
||||
_emission.active = value;
|
||||
}
|
||||
}
|
||||
|
||||
private EmissionToggle _emission;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
_emission = GetComponent<EmissionToggle>();
|
||||
}
|
||||
|
||||
private void Start()
|
||||
{
|
||||
Active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user