blob: b185b72174ad0115abc24b0bb03f9b9e0def1860 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
using System.Collections.Generic;
using Sirenix.OdinInspector;
using UnityEngine;
public class ColorHandler : SerializedMonoBehaviour
{
public enum ColorType
{
PhysicsObject
}
public Dictionary<ColorType, Color> colors = new Dictionary<ColorType, Color>();
public static ColorHandler instance;
private void Awake()
{
instance = this;
}
public Color GetColor(ColorType colorType)
{
return colors[colorType];
}
}
|