예제 #1
0
    protected override UITweener startCloseEffectInternal(GameObject widget)
    {
        if (widget == trRoot)
        {
            TweenTransform tt = TweenTransform.Begin(widget, duration, toTr, fromTr);
            tt.style = UITweener.Style.Once;

            return(tt as UITweener);
        }
        return(null);
    }
예제 #2
0
 // 我的车库
 private void GarageScene()
 {
     if (currentState == GUIManager.GameState.UpgradeScene)
     {
         TweenTransform.Begin(_UpgradeScene, 0.5f, PositionA, PositionB);
         TweenTransform.Begin(_GarageScene, 0.5f, PositionB, PositionA);
     }
     TweenTransform.Begin(_GarageScene, 0.5f, PositionB, PositionA);
     TweenTransform.Begin(_MainMenuScene, 0.5f, PositionA, PositionB);
     currentState = GUIManager.GameState.GarageScene;
 }
예제 #3
0
        private Task partTask(GameObject obj, Transform transform, float duration)
        {
            TweenTask tt = new TweenTask(delegate() {
                Debug.Log(transform.name);
                Tween tween  = TweenTransform.Begin(obj, duration, transform);
                tween.method = _method;
                return(tween);
            });

            return(tt);
        }
예제 #4
0
파일: Wall.cs 프로젝트: chongbo2013/backup
    // 训练场
    private void TestScene()
    {
        Debug.Log(this.name + " event is called.");
        //_popup.SetActive(true);
        //TweenAlpha.Begin(_popup,3f, 0f);

        // wall anim


        //TweenRotation.Begin(_wallBack,0.5f,Quaternion.Euler(180, 0, 0));
        TweenTransform.Begin(_wallBack, durationTime, _wallBack.transform, _wallBackTo);
        TweenTransform.Begin(_wallFront, durationTime, _wallFront.transform, _wallFrontTo);
        TweenTransform.Begin(_wallLeft, durationTime, _wallLeft.transform, _wallLeftTo);
        TweenTransform.Begin(_wallRight, durationTime, _wallRight.transform, _wallRightTo);
    }
예제 #5
0
    public static int Begin_s(IntPtr l)
    {
        int result;

        try
        {
            int num = LuaDLL.pua_gettop(l);
            if (num == 3)
            {
                GameObject go;
                LuaObject.checkType <GameObject>(l, 1, out go);
                float duration;
                LuaObject.checkType(l, 2, out duration);
                Transform to;
                LuaObject.checkType <Transform>(l, 3, out to);
                TweenTransform o = TweenTransform.Begin(go, duration, to);
                LuaObject.pushValue(l, true);
                LuaObject.pushValue(l, o);
                result = 2;
            }
            else if (num == 4)
            {
                GameObject go2;
                LuaObject.checkType <GameObject>(l, 1, out go2);
                float duration2;
                LuaObject.checkType(l, 2, out duration2);
                Transform from;
                LuaObject.checkType <Transform>(l, 3, out from);
                Transform to2;
                LuaObject.checkType <Transform>(l, 4, out to2);
                TweenTransform o2 = TweenTransform.Begin(go2, duration2, from, to2);
                LuaObject.pushValue(l, true);
                LuaObject.pushValue(l, o2);
                result = 2;
            }
            else
            {
                LuaObject.pushValue(l, false);
                LuaDLL.pua_pushstring(l, "No matched override function to call");
                result = 2;
            }
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
예제 #6
0
        static int _m_Begin_xlua_st_(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 3 && translator.Assignable <UnityEngine.GameObject>(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <UnityEngine.Transform>(L, 3))
                {
                    UnityEngine.GameObject go = (UnityEngine.GameObject)translator.GetObject(L, 1, typeof(UnityEngine.GameObject));
                    float duration            = (float)LuaAPI.lua_tonumber(L, 2);
                    UnityEngine.Transform to  = (UnityEngine.Transform)translator.GetObject(L, 3, typeof(UnityEngine.Transform));

                    TweenTransform __cl_gen_ret = TweenTransform.Begin(go, duration, to);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 4 && translator.Assignable <UnityEngine.GameObject>(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <UnityEngine.Transform>(L, 3) && translator.Assignable <UnityEngine.Transform>(L, 4))
                {
                    UnityEngine.GameObject go  = (UnityEngine.GameObject)translator.GetObject(L, 1, typeof(UnityEngine.GameObject));
                    float duration             = (float)LuaAPI.lua_tonumber(L, 2);
                    UnityEngine.Transform from = (UnityEngine.Transform)translator.GetObject(L, 3, typeof(UnityEngine.Transform));
                    UnityEngine.Transform to   = (UnityEngine.Transform)translator.GetObject(L, 4, typeof(UnityEngine.Transform));

                    TweenTransform __cl_gen_ret = TweenTransform.Begin(go, duration, from, to);
                    translator.Push(L, __cl_gen_ret);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to TweenTransform.Begin!"));
        }
예제 #7
0
 static public int Begin_s(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 3)
         {
             UnityEngine.GameObject a1;
             checkType(l, 1, out a1);
             System.Single a2;
             checkType(l, 2, out a2);
             UnityEngine.Transform a3;
             checkType(l, 3, out a3);
             var ret = TweenTransform.Begin(a1, a2, a3);
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         else if (argc == 4)
         {
             UnityEngine.GameObject a1;
             checkType(l, 1, out a1);
             System.Single a2;
             checkType(l, 2, out a2);
             UnityEngine.Transform a3;
             checkType(l, 3, out a3);
             UnityEngine.Transform a4;
             checkType(l, 4, out a4);
             var ret = TweenTransform.Begin(a1, a2, a3, a4);
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
예제 #8
0
    // 主菜单
    private void MainMenuScene()
    {
        _GameStartScene.SetActive(false);

        if (currentState == GUIManager.GameState.GarageScene)
        {
            TweenTransform.Begin(_GarageScene, 0.5f, PositionA, PositionB);
            TweenTransform.Begin(_MainMenuScene, 0.5f, PositionB, PositionA);
        }
        else if (currentState == GUIManager.GameState.TrainingScene)
        {
            _TrainingScene.SetActive(false);
        }
        else if (currentState == GUIManager.GameState.TestScene)
        {
            _Popup.SetActive(false);
            Car.currentSpeed = 0;
            TweenTransform.Begin(_MainMenuScene, 0.5f, PositionB, PositionA);
        }

        TweenTransform.Begin(_MainMenuScene, 0.5f, PositionB, PositionA);
        currentState = GUIManager.GameState.MainMenuScene;
    }
예제 #9
0
 // Token: 0x060002AF RID: 687 RVA: 0x00004036 File Offset: 0x00002236
 public static TweenTransform Begin(GameObject go, float duration, Transform to)
 {
     return(TweenTransform.Begin(go, duration, null, to));
 }
예제 #10
0
파일: Anchor.cs 프로젝트: nethz/MrPP.com
 public void stop()
 {
     TweenTransform.Begin(_mesh, 0.5f, _sleep);
 }
예제 #11
0
파일: Anchor.cs 프로젝트: nethz/MrPP.com
 public void wait()
 {
     TweenTransform.Begin(_mesh, 0.5f, _weakup);
 }
예제 #12
0
 public static TweenTransform Begin(GameObject go, Single duration, Transform to)
 {
     return(TweenTransform.Begin(go, duration, (Transform)null, to));
 }
예제 #13
0
 // 启动页
 private void GameStart()
 {
     _GameStartScene.SetActive(true);
     currentState = GUIManager.GameState.GameStart;
     TweenTransform.Begin(_MainMenuScene, 0.5f, PositionA, PositionB);
 }
예제 #14
0
    // 训练场
    private void TestScene()
    {
        TweenTransform.Begin(_MainMenuScene, 0.5f, PositionA, PositionB);

        currentState = GUIManager.GameState.TestScene;
    }
예제 #15
0
 // 培训
 private void TrainingScene()
 {
     _TrainingScene.SetActive(true);
     TweenTransform.Begin(_MainMenuScene, 0.5f, PositionA, PositionB);
     currentState = GUIManager.GameState.TrainingScene;
 }
예제 #16
0
 public unsafe static long $Invoke1(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(TweenTransform.Begin((GameObject)GCHandledObjects.GCHandleToObject(*args), *(float *)(args + 1), (Transform)GCHandledObjects.GCHandleToObject(args[2]), (Transform)GCHandledObjects.GCHandleToObject(args[3]))));
 }