Beispiel #1
0
// properties

// methods

    static bool Color2_op_Addition__Color2__Color2(JSVCall vc, int argc)
    {
        DG.Tweening.Color2 arg0 = (DG.Tweening.Color2)JSMgr.datax.getObject((int)JSApi.GetType.Arg);
        DG.Tweening.Color2 arg1 = (DG.Tweening.Color2)JSMgr.datax.getObject((int)JSApi.GetType.Arg);
        JSMgr.datax.setObject((int)JSApi.SetType.Rval, arg0 + arg1);
        return(true);
    }
Beispiel #2
0
 public static Tweener DOColor(this LineRenderer target, Color2 startValue, Color2 endValue, float duration)
 {
     return(DOTween.To(() => startValue, delegate(Color2 x)
     {
         target.SetColors(x.ca, x.cb);
     }, endValue, duration).SetTarget(target));
 }
Beispiel #3
0
 static bool Color2_op_Multiply__Color2__Single(JSVCall vc, int argc)
 {
     DG.Tweening.Color2 arg0 = (DG.Tweening.Color2)JSMgr.datax.getObject((int)JSApi.GetType.Arg);
     System.Single      arg1 = (System.Single)JSApi.getSingle((int)JSApi.GetType.Arg);
     JSMgr.datax.setObject((int)JSApi.SetType.Rval, arg0 * arg1);
     return(true);
 }
 public static Tweener DOColor(this LineRenderer target, Color2 startValue, Color2 endValue, float duration)
 {
     return(DOTween.To(() => startValue, delegate(Color2 x) {
         //target.SetColors(x.ca, x.cb);
         target.startColor = x.ca;
         target.endColor = x.cb;
     }, endValue, duration).SetTarget <TweenerCore <Color2, Color2, ColorOptions> >(target));
 }
        public override void Execute()
        {
            var startColour = new Color2(StartColour, StartColour);
            var endColour = new Color2(EndColour, EndColour);
            var lineRenderer = EntityView.GetComponent<UnityEngine.LineRenderer>();
            var tweener = lineRenderer.DOColor(startColour, endColour, Duration);
            tweener.Pause();

            CreatedTween = tweener;
        }
	static public int constructor(IntPtr l) {
		try {
			DG.Tweening.Color2 o;
			UnityEngine.Color a1;
			checkType(l,2,out a1);
			UnityEngine.Color a2;
			checkType(l,3,out a2);
			o=new DG.Tweening.Color2(a1,a2);
			pushValue(l,true);
			pushValue(l,o);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
Beispiel #7
0
 static void Color2_cb(JSVCall vc)
 {
     if (vc.bGet)
     {
         DG.Tweening.Color2 _this = (DG.Tweening.Color2)vc.csObj;
         var result = _this.cb;
         JSMgr.datax.setObject((int)JSApi.SetType.Rval, result);
     }
     else
     {
         UnityEngine.Color  arg0  = (UnityEngine.Color)JSMgr.datax.getObject((int)JSApi.GetType.Arg);
         DG.Tweening.Color2 _this = (DG.Tweening.Color2)vc.csObj;
         _this.cb = arg0;
         JSMgr.changeJSObj(vc.jsObjID, _this);
     }
 }
 static public int constructor(IntPtr l)
 {
     try {
         DG.Tweening.Color2 o;
         UnityEngine.Color  a1;
         checkType(l, 2, out a1);
         UnityEngine.Color a2;
         checkType(l, 3, out a2);
         o = new DG.Tweening.Color2(a1, a2);
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Beispiel #9
0
 static int DOColor(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         UnityEngine.LineRenderer obj  = (UnityEngine.LineRenderer)ToLua.CheckObject(L, 1, typeof(UnityEngine.LineRenderer));
         DG.Tweening.Color2       arg0 = (DG.Tweening.Color2)ToLua.CheckObject(L, 2, typeof(DG.Tweening.Color2));
         DG.Tweening.Color2       arg1 = (DG.Tweening.Color2)ToLua.CheckObject(L, 3, typeof(DG.Tweening.Color2));
         float arg2            = (float)LuaDLL.luaL_checknumber(L, 4);
         DG.Tweening.Tweener o = obj.DOColor(arg0, arg1, arg2);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 public DG.Tweening.Tweener DOColor(DG.Tweening.Color2 arg1, DG.Tweening.Color2 arg2, float arg3)
 {
     return(default(DG.Tweening.Tweener));
 }
Beispiel #11
0
 /// <summary>Tweens a LineRenderer's color to the given value.
 /// Also stores the LineRenderer as the tween's target so it can be used for filtered operations.
 /// <para>Note that this method requires to also insert the start colors for the tween, 
 /// since LineRenderers have no way to get them.</para></summary>
 /// <param name="startValue">The start value to tween from</param>
 /// <param name="endValue">The end value to reach</param><param name="duration">The duration of the tween</param>
 public static Tweener DOColor(this LineRenderer target, Color2 startValue, Color2 endValue, float duration)
 {
     return DOTween.To(() => startValue, x => target.SetColors(x.ca, x.cb), endValue, duration).SetTarget(target);
 }
Beispiel #12
0
 public static TweenerCore <Color2, Color2, ColorOptions> To(DOGetter <Color2> getter, DOSetter <Color2> setter, Color2 endValue, float duration)
 {
     return(DOTween.ApplyTo <Color2, Color2, ColorOptions>(getter, setter, endValue, duration, null));
 }
Beispiel #13
0
 internal static TweenerCore <Color2, Color2, ColorOptions> To(DOGetter <Color2> getter, DOSetter <Color2> setter, Color2 endValue, float duration)
 {
     return(DOTween.ApplyTo(getter, setter, endValue, duration, (ABSTweenPlugin <Color2, Color2, ColorOptions>)null));
 }