private bool ExtractParamaterlessMethod(string methodName, VideoClipEvent clipEvent, MethodInfo info, Component component)
        {
            if (methodName != clipEvent.MethodName)
            {
                return(true);
            }
            Debug.Log("Method: " + info.GetType());
            UnityReifiedMethod method     = new UnityReifiedMethod(info, component, null);
            TimeMethod         timeMethod = new TimeMethod(clipEvent.Time, method);

            methods.Add(timeMethod);
            return(false);
        }
        private bool ExtractMethod(string methodName, VideoClipEvent clipEvent, MethodInfo info, Component component, Type argumentType)
        {
            if (methodName != clipEvent.MethodName)
            {
                return(true);
            }
            UnityReifiedMethod method = new UnityReifiedMethod(info, component,
                                                               clipEvent.GetAppropriateValue(argumentType));
            TimeMethod timeMethod = new TimeMethod(clipEvent.Time, method);

            methods.Add(timeMethod);
            return(false);
        }
Esempio n. 3
0
 public TimeMethod(double time, UnityReifiedMethod method)
 {
     this.time  = time;
     methodInfo = method;
 }