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); }
public TimeMethod(double time, UnityReifiedMethod method) { this.time = time; methodInfo = method; }