public static void TextPulse(Text text) { DOTween.Sequence().SetLoops(-1, LoopType.Yoyo) .Append(text.DOColor(Color.white, .6f).SetEase(Ease.InQuad)) .AppendInterval(.2f) .Append(text.DOColor(MCLR.orange, .6f).SetEase(Ease.OutQuad)) .AppendInterval(.2f); }
public static void DisplayScore(GameObject gameObject, Text text) { gameObject.transform.DOScale(new Vector3(1, 1, 0), 0f); gameObject.transform.DOPunchScale(new Vector3(1f, 1f, 0f), .3f, 3, 1); DOTween.Sequence() .Append(text.DOColor(Color.yellow, .15f)) .Append(text.DOColor(Color.white, .15f)) .Append(text.DOColor(MColor.orange, .3f));; }
static int DOColor(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 3 && TypeChecker.CheckTypes <UnityEngine.UI.Graphic, UnityEngine.Color, float>(L, 1)) { UnityEngine.UI.Text obj = (UnityEngine.UI.Text)ToLua.ToObject(L, 1); UnityEngine.Color arg0 = ToLua.ToColor(L, 2); float arg1 = (float)LuaDLL.lua_tonumber(L, 3); DG.Tweening.Tweener o = obj.DOColor(arg0, arg1); ToLua.PushObject(L, o); return(1); } else if (count == 3 && TypeChecker.CheckTypes <UnityEngine.UI.Text, UnityEngine.Color, float>(L, 1)) { UnityEngine.UI.Text obj = (UnityEngine.UI.Text)ToLua.ToObject(L, 1); UnityEngine.Color arg0 = ToLua.ToColor(L, 2); float arg1 = (float)LuaDLL.lua_tonumber(L, 3); DG.Tweening.Tweener o = obj.DOColor(arg0, arg1); ToLua.PushObject(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.UI.Text.DOColor")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public static void TextFlicker(Text text) { DOTween.Sequence() .Append(text.DOColor(Color.yellow, .05f)) .Append(text.DOColor(MCLR.orange, .05f)) .Append(text.DOColor(Color.yellow, .05f)) .Append(text.DOColor(MCLR.orange, .05f)) .Append(text.DOColor(Color.yellow, .05f)) .Append(text.DOColor(MCLR.orange, .05f)) .Append(text.DOColor(Color.yellow, .05f)) .Append(text.DOColor(MCLR.orange, .3f)); }
static int DOColor(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); UnityEngine.UI.Text obj = (UnityEngine.UI.Text)ToLua.CheckObject(L, 1, typeof(UnityEngine.UI.Text)); UnityEngine.Color arg0 = ToLua.ToColor(L, 2); float arg1 = (float)LuaDLL.luaL_checknumber(L, 3); DG.Tweening.Tweener o = obj.DOColor(arg0, arg1); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }