Finish Puzzle C
This commit is contained in:
@@ -2,9 +2,24 @@
|
||||
|
||||
namespace EscapeRoomEngine.Desert.Runtime.Puzzle_C
|
||||
{
|
||||
[RequireComponent(typeof(Rigidbody), typeof(Collider))]
|
||||
[RequireComponent(typeof(Rigidbody), typeof(Collider), typeof(Emission))]
|
||||
public class HoleOrb : MonoBehaviour
|
||||
{
|
||||
|
||||
public Color Color
|
||||
{
|
||||
set => _emission.color = value;
|
||||
}
|
||||
|
||||
private Emission _emission;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
_emission = GetComponent<Emission>();
|
||||
}
|
||||
|
||||
private void Start()
|
||||
{
|
||||
_emission.active = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user