static public int DOPath_s(IntPtr l) { try { UnityEngine.Transform a1; checkType(l, 1, out a1); UnityEngine.Vector3[] a2; checkArray(l, 2, out a2); System.Single a3; checkType(l, 3, out a3); DG.Tweening.PathType a4; checkEnum(l, 4, out a4); DG.Tweening.PathMode a5; checkEnum(l, 5, out a5); System.Int32 a6; checkType(l, 6, out a6); System.Nullable <UnityEngine.Color> a7; checkNullable(l, 7, out a7); var ret = DoTweenPathLuaUtil.DOPath(a1, a2, a3, a4, a5, a6, a7); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int constructor(IntPtr l) { try { DoTweenPathLuaUtil o; o = new DoTweenPathLuaUtil(); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int DOPlayBackwards_s(IntPtr l) { try { UnityEngine.Transform a1; checkType(l, 1, out a1); DoTweenPathLuaUtil.DOPlayBackwards(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int SetRelative_s(IntPtr l) { try { DG.Tweening.Core.TweenerCore <UnityEngine.Vector3, DG.Tweening.Plugins.Core.PathCore.Path, DG.Tweening.Plugins.Options.PathOptions> a1; checkType(l, 1, out a1); DoTweenPathLuaUtil.SetRelative(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int PathLerp_s(IntPtr l) { try { UnityEngine.Vector3[] a1; checkArray(l, 1, out a1); var ret = DoTweenPathLuaUtil.PathLerp(a1); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int IsPlaying_s(IntPtr l) { try { DG.Tweening.Tween a1; checkType(l, 1, out a1); var ret = DoTweenPathLuaUtil.IsPlaying(a1); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int OnWaypointChanged_s(IntPtr l) { try { DG.Tweening.Core.TweenerCore <UnityEngine.Vector3, DG.Tweening.Plugins.Core.PathCore.Path, DG.Tweening.Plugins.Options.PathOptions> a1; checkType(l, 1, out a1); System.Action <System.Int32> a2; checkDelegate(l, 2, out a2); DoTweenPathLuaUtil.OnWaypointChanged(a1, a2); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int OnRewind_s(IntPtr l) { try { DG.Tweening.Tween a1; checkType(l, 1, out a1); System.Action a2; checkDelegate(l, 2, out a2); DoTweenPathLuaUtil.OnRewind(a1, a2); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int SetEaseTweener_s(IntPtr l) { try { DG.Tweening.Tween a1; checkType(l, 1, out a1); DG.Tweening.Ease a2; checkEnum(l, 2, out a2); DoTweenPathLuaUtil.SetEaseTweener(a1, a2); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int Kill_s(IntPtr l) { try { DG.Tweening.Tween a1; checkType(l, 1, out a1); System.Boolean a2; checkType(l, 2, out a2); DoTweenPathLuaUtil.Kill(a1, a2); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int SetLoop_s(IntPtr l) { try { DG.Tweening.Tween a1; checkType(l, 1, out a1); System.Int32 a2; checkType(l, 2, out a2); DG.Tweening.LoopType a3; checkEnum(l, 3, out a3); DoTweenPathLuaUtil.SetLoop(a1, a2, a3); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int DOMove_s(IntPtr l) { try { UnityEngine.Transform a1; checkType(l, 1, out a1); UnityEngine.Vector3 a2; checkType(l, 2, out a2); System.Single a3; checkType(l, 3, out a3); var ret = DoTweenPathLuaUtil.DOMove(a1, a2, a3); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int SetOptions_s(IntPtr l) { try { DG.Tweening.Core.TweenerCore <UnityEngine.Vector3, DG.Tweening.Plugins.Core.PathCore.Path, DG.Tweening.Plugins.Options.PathOptions> a1; checkType(l, 1, out a1); System.Boolean a2; checkType(l, 2, out a2); DG.Tweening.AxisConstraint a3; checkEnum(l, 3, out a3); DG.Tweening.AxisConstraint a4; checkEnum(l, 4, out a4); DoTweenPathLuaUtil.SetOptions(a1, a2, a3, a4); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int SetLookAt_s(IntPtr l) { try { DG.Tweening.Core.TweenerCore <UnityEngine.Vector3, DG.Tweening.Plugins.Core.PathCore.Path, DG.Tweening.Plugins.Options.PathOptions> a1; checkType(l, 1, out a1); System.Single a2; checkType(l, 2, out a2); System.Nullable <UnityEngine.Vector3> a3; checkNullable(l, 3, out a3); System.Nullable <UnityEngine.Vector3> a4; checkNullable(l, 4, out a4); DoTweenPathLuaUtil.SetLookAt(a1, a2, a3, a4); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int DoScale_s(IntPtr l) { try { UnityEngine.Transform a1; checkType(l, 1, out a1); System.Single a2; checkType(l, 2, out a2); System.Single a3; checkType(l, 3, out a3); System.Single a4; checkType(l, 4, out a4); System.Single a5; checkType(l, 5, out a5); var ret = DoTweenPathLuaUtil.DoScale(a1, a2, a3, a4, a5); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
/// <summary> /// public interface to reset the renderer items /// </summary> /// <param name="indexs">all item's sibling index in list</param> /// <param name="deltaTime"></param> public void ResetShowItems(List <int> indexs, float deltaTime) { _indexs.Clear(); if (indexs == null || indexs.Count <= 0) { return; } _indexs.AddRange(indexs); int minStartPos = indexs[0]; int idx = 0; for (idx = 1; idx < indexs.Count; ++idx) { if (minStartPos <= indexs[idx]) { minStartPos = indexs[idx]; } } List <int> used = new List <int>(); trans_position.Clear(); int siblingIdx = 0; oldAwardTrans.Clear(); for (idx = 0; idx < indexs.Count; ++idx) { Transform oldTras = m_Content.GetChild(indexs[idx]); oldAwardTrans.Add(oldTras); //get next render item siblingIdx = indexs[idx]; Transform newTrans = null; for (int i = siblingIdx + 1; i < m_Content.childCount; ++i) { if (indexs.Contains(i) == false && used.Contains(i) == false) { newTrans = m_Content.GetChild(i); used.Add(i); trans_position.Add(newTrans, oldTras.localPosition.y); break; } } } idx = minColumnOrRaw - indexs.Count; if (used.Count <= 0) { Debug.LogError("" + transform.name + " indexs=" + indexs.Count + " coent=" + indexs.ToString()); } siblingIdx = used[used.Count - 1]; while (idx > 0) { float endValue = m_Content.GetChild(siblingIdx).localPosition.y; ++siblingIdx; trans_position.Add(m_Content.GetChild(siblingIdx), endValue); --idx; } foreach (var obj in trans_position) { Tweener tween = DoTweenPathLuaUtil.DOLocalMoveY(obj.Key, obj.Value, deltaTime); DoTweenPathLuaUtil.OnComplete(tween, this.onTweenCompleted); } m_ITweenDoneCount = 0; }