SetStartToCurrentValue() public method

public SetStartToCurrentValue ( ) : void
return void
Ejemplo n.º 1
0
		/// <summary>
		/// Playbackward this instance.
		/// close the panel
		/// </summary>
		protected void playbackward ()
		{
				tweenaph = TweenAlpha.Begin (TEXTURE, scaleAnimationTime * 0.8f, 0f);
				tweenaph.from = 1.0f;
				tweenaph.SetStartToCurrentValue ();
				tweenaph.to = 0.0f;
				tweenaph.animationCurve = curve1;
				DIALOG.SetActive (true);
				tweenScale = TweenScale.Begin (DIALOG, scaleAnimationTime * 1.1f, new Vector3 (1f, 0f, 1f));
				EventDelegate.Add (tweenScale.onFinished, onAniDoneBackward);
				tweenaph.SetStartToCurrentValue ();
				questionTextView.text = "";
				all_buttons (false);
		
		}
Ejemplo n.º 2
0
    static int SetStartToCurrentValue(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        TweenAlpha obj = LuaScriptMgr.GetNetObject <TweenAlpha>(L, 1);

        obj.SetStartToCurrentValue();
        return(0);
    }
Ejemplo n.º 3
0
    static int SetStartToCurrentValue(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        TweenAlpha obj = (TweenAlpha)LuaScriptMgr.GetUnityObjectSelf(L, 1, "TweenAlpha");

        obj.SetStartToCurrentValue();
        return(0);
    }
Ejemplo n.º 4
0
 private static void SetDefaultTransitionAnim(Transform ui, bool need_scale)
 {
     //IL_0001: Unknown result type (might be due to invalid IL or missing references)
     //IL_0018: Unknown result type (might be due to invalid IL or missing references)
     //IL_0067: Unknown result type (might be due to invalid IL or missing references)
     //IL_00b8: Unknown result type (might be due to invalid IL or missing references)
     //IL_00d5: Unknown result type (might be due to invalid IL or missing references)
     //IL_00e6: Unknown result type (might be due to invalid IL or missing references)
     //IL_00eb: Unknown result type (might be due to invalid IL or missing references)
     //IL_011f: Unknown result type (might be due to invalid IL or missing references)
     //IL_016a: Unknown result type (might be due to invalid IL or missing references)
     //IL_0178: Unknown result type (might be due to invalid IL or missing references)
     //IL_017d: Unknown result type (might be due to invalid IL or missing references)
     //IL_0192: Unknown result type (might be due to invalid IL or missing references)
     //IL_0197: Unknown result type (might be due to invalid IL or missing references)
     if (!(ui.get_gameObject().GetComponentInChildren <UITransition>() != null))
     {
         UITransition uITransition = ui.get_gameObject().AddComponent <UITransition>();
         float        duration     = (!MonoBehaviourSingleton <GlobalSettingsManager> .IsValid()) ? 0.25f : MonoBehaviourSingleton <GlobalSettingsManager> .I.defaultUITransitionAnimTime;
         int          num          = (!need_scale) ? 1 : 2;
         uITransition.openTweens = new UITweener[num];
         TweenAlpha tweenAlpha = (TweenAlpha)(uITransition.openTweens[0] = ui.get_gameObject().AddComponent <TweenAlpha>());
         tweenAlpha.value = 0f;
         tweenAlpha.SetStartToCurrentValue();
         tweenAlpha.to              = 1f;
         tweenAlpha.duration        = duration;
         tweenAlpha.animationCurve  = Curves.easeLinear;
         tweenAlpha.ignoreTimeScale = false;
         if (need_scale)
         {
             TweenScale tweenScale = (TweenScale)(uITransition.openTweens[1] = ui.get_gameObject().AddComponent <TweenScale>());
             tweenScale.value = new Vector3(1.05f, 1.05f, 1f);
             tweenScale.SetStartToCurrentValue();
             tweenScale.to              = Vector3.get_one();
             tweenScale.duration        = duration;
             tweenScale.animationCurve  = Curves.easeIn;
             tweenScale.ignoreTimeScale = false;
         }
         uITransition.closeTweens = new UITweener[num];
         tweenAlpha                 = (TweenAlpha)(uITransition.closeTweens[0] = ui.get_gameObject().AddComponent <TweenAlpha>());
         tweenAlpha.from            = 1f;
         tweenAlpha.to              = 0f;
         tweenAlpha.duration        = duration;
         tweenAlpha.animationCurve  = Curves.easeLinear;
         tweenAlpha.ignoreTimeScale = false;
         if (need_scale)
         {
             TweenScale tweenScale = (TweenScale)(uITransition.closeTweens[1] = ui.get_gameObject().AddComponent <TweenScale>());
             tweenScale.from            = Vector3.get_one();
             tweenScale.to              = new Vector3(1.05f, 1.05f, 1f);
             tweenScale.duration        = duration;
             tweenScale.animationCurve  = Curves.easeIn;
             tweenScale.ignoreTimeScale = false;
         }
         uITransition.InitTweens();
     }
 }
Ejemplo n.º 5
0
 static public int SetStartToCurrentValue(IntPtr l)
 {
     try {
         TweenAlpha self = (TweenAlpha)checkSelf(l);
         self.SetStartToCurrentValue();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 6
0
 static int SetStartToCurrentValue(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         TweenAlpha obj = (TweenAlpha)ToLua.CheckObject(L, 1, typeof(TweenAlpha));
         obj.SetStartToCurrentValue();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Ejemplo n.º 7
0
    public static int SetStartToCurrentValue(IntPtr l)
    {
        int result;

        try
        {
            TweenAlpha tweenAlpha = (TweenAlpha)LuaObject.checkSelf(l);
            tweenAlpha.SetStartToCurrentValue();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 8
0
        static int _m_SetStartToCurrentValue(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            TweenAlpha __cl_gen_to_be_invoked = (TweenAlpha)translator.FastGetCSObj(L, 1);


            try {
                {
                    __cl_gen_to_be_invoked.SetStartToCurrentValue(  );



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Ejemplo n.º 9
0
		/// <summary>
		/// Playforward this instance.
		/// open the panel and display the dialog in here
		/// </summary>
		protected void playforward ()
		{
				tweenaph = TweenAlpha.Begin (TEXTURE, scaleAnimationTime * 2f, 1f);
				tweenaph.from = 0f;
				tweenaph.SetStartToCurrentValue ();
				tweenaph.to = 1.0f;
				tweenaph.animationCurve = curve1;

				tweenScale = TweenScale.Begin (DIALOG, scaleAnimationTime, new Vector3 (1f, 1f, 1f));
				tweenScale.from = new Vector3 (1f, 0f, 1f);
				tweenScale.to = new Vector3 (1f, 1f, 1f);
				EventDelegate.Add (tweenScale.onFinished, onAniDoneForward);
				
		}