static int JudgeTween(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); BCTweenRandTrigger obj = (BCTweenRandTrigger)ToLua.CheckObject <BCTweenRandTrigger>(L, 1); obj.JudgeTween(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
/// <summary> /// Manually activate the tweening process, reversing it if necessary. /// </summary> public virtual void Play(bool forward) { BCTweenRandTrigger randomTrigger = GetComponent <BCTweenRandTrigger>(); if (randomTrigger != null && randomTrigger.enabled) { randomTrigger.JudgeTween(); } mAmountPerDelta = Mathf.Abs(amountPerDelta); if (!forward) { mAmountPerDelta = -mAmountPerDelta; } enabled = true; Update(); }