// checkOver 是否检测鼠标是否悬停(mono使用null) public static InputCall AddInput(this MonoBehaviour mono, Action updateFunc, int order, bool checkOver = true) { GLHandler h = new GLHandler(mono.gameObject); h.order = order; h.name = mono.name; UI.I.glHandlers.Add(h); UI.I.imHandlers.Add(new IMHandler(mono.gameObject)); return(UI.I._inputs.Add_(new InputCall(mono, updateFunc, order, checkOver))); }
public virtual int SortList(GLHandler a, GLHandler b) { if (a.order > b.order) { return(1); } ///顺序从低到高 else if (a.order < b.order) { return(-1); } return(((GameObject)a.owner).name.CompareTo(((GameObject)b.owner).name)); }