Beispiel #1
0
 public GameEventListener(Event listenerEvent, GameObject sender)
 {
     Event = listenerEvent;
     Event.AddListener(this);
     IntendedSender = sender;
     actions        = new UnityEvent();
 }
Beispiel #2
0
        // Use this for initialization
        void Start()
        {
            if (!Event)
            {
                Event = new Event();
            }

            Event.AddListener(this);
        }