Ejemplo n.º 1
0
    public static ActionEventDispatcher RegisterActionEvent(this MonoBehaviour mono, ActionEnums.ActionID actionID, System.Action callback)
    {
        if (ReferenceEquals(ActionEventDispatcher.InstanceAwake(), null))
        {
            LogGame.Error("[Action Event] Action Event Dispatcher Is Null!");
            return(null);
        }

        return(ActionEventDispatcher.Instance.RegisterEvent(actionID, callback));;
    }
Ejemplo n.º 2
0
    public static ActionEventDispatcher PostActionEvent(this MonoBehaviour mono, ActionEnums.ActionID actionID, object param = null)
    {
        if (ReferenceEquals(ActionEventDispatcher.InstanceAwake(), null))
        {
            LogGame.Error("[Action Event] Action Event Dispatcher Is Null!");
            return(null);
        }

        return(ActionEventDispatcher.Instance.PostEvent(actionID, param));;
    }