26 lines
548 B
C#
26 lines
548 B
C#
using Station46.Scripts;
|
|
using UnityEngine;
|
|
|
|
namespace Station46.Modules.Dispenser.Scripts
|
|
{
|
|
[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;
|
|
}
|
|
}
|
|
} |