public EventNode(EventFunctionLua fun, bool remove) { function = null; functionLua = fun; removeOnLoadScene = remove; }
public void AddListener(int ge, EventFunctionLua ef, bool removeOnLoadScene = true) { AddListener(ge, new EventNode(ef, removeOnLoadScene)); }
public void RemoveListener(int ge, EventFunctionLua ef) { RemoveListener(ge, new EventNode(ef, false)); }