Beispiel #1
0
            virtual public void CallFunctionVoid(string _FunctionName)
            {
#if LITDEBUG
                try
                {
#endif
                if (mObject == null || mScriptType == null || mCodeTool == null)
                {
                    return;
                }
                MethodBase tmethod = GetMethod(_FunctionName);
                if (tmethod == null)
                {
                    return;
                }
                tmethod.Call();
#if LITDEBUG
            }

            catch (Exception _erro)
            {
                DLog.LogError(string.Format("[{0}->{1}] [GameObject:{2}] Error:{3}", mScriptClass, _FunctionName, gameObject.name, _erro.ToString()));
            }
#endif
            }
Beispiel #2
0
 virtual public void CallMethod()
 {
     if (method != null)
     {
         method.Call();
     }
 }
 virtual public object CallMethod(MethodBase pMethod)
 {
     try
     {
         pMethod.Call();
     }
     catch (Exception _erro)
     {
         DLog.LogError(_erro);
     }
     return(null);
 }