public static AnimData CustomMethodToVector4(AnimCustomMethodVector4 method, Vector4 from, Vector4 to, float time = 0.5f, float delayTime = 0, InterpType interp = InterpType.Default, bool IsIgnoreTimeScale = false, RepeatType repeatType = RepeatType.Once, int repeatCount = -1, AnimCallBack callBack = null, object[] parameter = null) { AnimData l_tmp = new AnimData();; l_tmp.m_animType = AnimType.Custom_Vector4; l_tmp.m_fromV4 = from; l_tmp.m_toV4 = to; l_tmp.m_customMethodV4 = method; l_tmp.m_delayTime = delayTime; l_tmp.m_totalTime = time; l_tmp.m_interpolationType = interp; l_tmp.m_repeatType = repeatType; l_tmp.m_repeatCount = repeatCount; l_tmp.m_ignoreTimeScale = IsIgnoreTimeScale; l_tmp.m_callBack = callBack; l_tmp.m_parameter = parameter; l_tmp.Init(); GetInstance().animList.Add(l_tmp); return(l_tmp); }
public static Delegate AnimCustomMethodVector4(LuaFunction func, LuaTable self, bool flag) { if (func == null) { AnimCustomMethodVector4 fn = delegate(UnityEngine.Vector4 param0) { }; return(fn); } if (!flag) { AnimCustomMethodVector4_Event target = new AnimCustomMethodVector4_Event(func); AnimCustomMethodVector4 d = target.Call; target.method = d.Method; return(d); } else { AnimCustomMethodVector4_Event target = new AnimCustomMethodVector4_Event(func, self); AnimCustomMethodVector4 d = target.CallWithSelf; target.method = d.Method; return(d); } }