Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public static object InvokeStatic(string type, string method, bool required, params object[] args)
 {
     return(XReflector.InvokeStatic(Type.GetType(type), method, required, args));
 }
Esempio n. 3
0
 public object Invoke(string method, bool required, params object[] args)
 {
     return(XReflector.InvokeInstance(this, method, required, args));
 }
Esempio n. 4
0
 public static object InvokeStatic <T>(string method, bool required, params object[] args)
 {
     return(XReflector.InvokeStatic(typeof(T), method, required, args));
 }