Table of contents

Create #

for creating action must implement IAction interface.

using UnityEngine;
using ArushaSoft.GenericEventSystem;

public class MyAction : MonoBehaviour ,IAction
{
    public void Clicked()
    {
        Debug.Log("Bottun clicked");
    }

    public void AddAction(ActionList actions)
    {
        actions.Add(new CustomAction(Clicked));
    }
}
What are your feelings
Updated on May 21, 2022