This commit is contained in:
2026-06-04 10:42:23 +07:00
parent e7e90790c9
commit 9be2242378
4166 changed files with 53005 additions and 11401 deletions

View File

@@ -0,0 +1,26 @@
using Invector;
using Invector.vCharacterController.vActions;
using System.Collections.Generic;
[vClassHeader("Trigger Action Event", helpBoxText = "Use this to filter a specific TriggerAction so you can use Events with the Controller or components attached to the Controller", useHelpBox = true)]
public class vTriggerActionEvent : vMonoBehaviour
{
public List<ActionEvent> actionFinders;
public void TriggerEvent(vTriggerGenericAction action)
{
var _action = actionFinders.Find(a => a.actionName.Equals(action.gameObject.name));
if (_action != null)
{
_action.onTriggerEvent.Invoke();
}
}
[System.Serializable]
public class ActionEvent
{
public string actionName;
public UnityEngine.Events.UnityEvent onTriggerEvent;
}
}