18 lines
366 B
C#
18 lines
366 B
C#
using UnityEngine;
|
|
|
|
public class RuntimeEventSelector : MonoBehaviour
|
|
{
|
|
public RuntimeEventTool targetTool;
|
|
|
|
[EventSetDropdown]
|
|
public string setToActivate;
|
|
|
|
public void ActivateSelectedSet()
|
|
{
|
|
if (targetTool != null && !string.IsNullOrEmpty(setToActivate))
|
|
{
|
|
targetTool.SetActiveSet(setToActivate);
|
|
}
|
|
}
|
|
}
|