public void Notify(GameObject ui, string method, params object[] param) { if (ui == null) { return; } var behavior = ui.GetComponent <GUIBehavior>(); if (behavior == null) { return; } XReflector.InvokeInstance(behavior, method, true, param); }
public object Invoke(string method, bool required, params object[] args) { return(XReflector.InvokeInstance(this, method, required, args)); }