Esempio n. 1
0
    private static void ShowCreationContext(AudioEvent audioevent)
    {
        var menu = new GenericMenu();

        foreach (EventActionTypes currentType in EnumUtil.GetValues <EventActionTypes>())
        {
            Type newType  = AudioEventWorker.ActionEnumToType(currentType);
            var  enumType = currentType;
            menu.AddItem(new GUIContent(currentType.FormatedName()), false, f =>
                         AudioEventWorker.AddEventAction(audioevent, newType, enumType), currentType);
        }
        menu.ShowAsContext();
    }