コード例 #1
0
    void PlusAnim(int delta)
    {
        plusText.text = "+" + delta;

        plusText.gameObject.SetActive(true);
        plusText.color = plusText.color.Ato(0);
        //transformの拡張メソッド生やせるなこれ
        plusText.transform.localPosition = plusText.transform.localPosition.Yto(plusTextDefY - 50);

        DG.Tweening.Sequence seq = DOTween.Sequence();
        seq.Append(
            plusText.transform.DOLocalMoveY(50, 1f)
            .SetRelative()
            .SetEase(Ease.OutQuint)
            );
        seq.Join(
            plusText.DOFade(1, 0.5f)
            );
        seq.AppendInterval(
            0.3f
            );
        seq.Append(
            plusText.DOFade(0, 0.3f)
            );
        seq.onComplete += () => plusText.gameObject.SetActive(false);
    }
コード例 #2
0
    static int AppendInterval(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        DG.Tweening.Sequence obj = (DG.Tweening.Sequence)LuaScriptMgr.GetNetObjectSelf(L, 1, "DG.Tweening.Sequence");
        float arg0 = (float)LuaScriptMgr.GetNumber(L, 2);

        DG.Tweening.Sequence o = obj.AppendInterval(arg0);
        LuaScriptMgr.PushObject(L, o);
        return(1);
    }
コード例 #3
0
 static int QPYX_AppendInterval_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 2);
         DG.Tweening.Sequence QPYX_obj_YXQP = (DG.Tweening.Sequence)ToLua.CheckObject(L_YXQP, 1, typeof(DG.Tweening.Sequence));
         float QPYX_arg0_YXQP             = (float)LuaDLL.luaL_checknumber(L_YXQP, 2);
         DG.Tweening.Sequence QPYX_o_YXQP = QPYX_obj_YXQP.AppendInterval(QPYX_arg0_YXQP);
         ToLua.PushSealed(L_YXQP, QPYX_o_YXQP);
         return(1);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
コード例 #4
0
 static int AppendInterval(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         DG.Tweening.Sequence obj = (DG.Tweening.Sequence)ToLua.CheckObject(L, 1, typeof(DG.Tweening.Sequence));
         float arg0             = (float)LuaDLL.luaL_checknumber(L, 2);
         DG.Tweening.Sequence o = obj.AppendInterval(arg0);
         ToLua.PushSealed(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #5
0
        static int _m_AppendInterval(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            DG.Tweening.Sequence __cl_gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1);


            try {
                {
                    float interval = (float)LuaAPI.lua_tonumber(L, 2);

                    DG.Tweening.Sequence __cl_gen_ret = __cl_gen_to_be_invoked.AppendInterval(interval);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }