blob: 62f79ac43ae3b594cfea1d4d20810e31903f45f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(fileName = "ActionTool Settings")]
public class ActionToolSettings : ScriptableObject
{
public List<string> eventNames = new List<string>();
public List<Color> eventColors = new List<Color>();
public Color GetColor(string eventName)
{
if(eventNames.Contains(eventName))
{
return eventColors[eventNames.IndexOf(eventName)];
}
return Color.black;
}
}
|