I’ve had a look at that post, and understand the approach in principle, but I’m still having a few problems with it.
I now have a class as follows:
using UnityEngine;
using System.Collections.Generic;
public static class GenericList {
public static List<BaseEventListener> EventListenerList ()
{
return new List<BaseEventListener>();
}
}
However, it does not seem to recognise the BaseEventListener type, which is defined in a seperate JS file.
Also, assuming I can get this approach to work, how would I declare the class variable I want…
private var registeredListeners : Dictionary.<String, what goes here?>