make dispenser available to all puzzles

This commit is contained in:
2022-12-03 14:52:00 +01:00
parent 824e043862
commit 655f495804
47 changed files with 2658 additions and 380 deletions

View File

@@ -0,0 +1,25 @@
using UnityEngine;
namespace EscapeRoomEngine.Desert.Runtime.Dispenser
{
[RequireComponent(typeof(Rigidbody), typeof(Collider), typeof(Emission))]
public class DispenserOrb : MonoBehaviour
{
public Color Color
{
set => _emission.color = value;
}
private Emission _emission;
private void Awake()
{
_emission = GetComponent<Emission>();
}
private void Start()
{
_emission.active = true;
}
}
}