MonetColorer.cs 353 B

12345678910111213141516
  1. using UnityEngine;
  2. namespace Smoothie.MonetColors.Runtime
  3. {
  4. public class MonetColorer : MonoBehaviour
  5. {
  6. [SerializeField, Range(0, 51)] protected int _color;
  7. protected Color _colorValue;
  8. private void Awake() => UpdateColor();
  9. public virtual void UpdateColor() => _colorValue = Colors.GetColor(_color);
  10. }
  11. }