static public int setIterations(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 2)
         {
             GoTweenCollectionConfig self = (GoTweenCollectionConfig)checkSelf(l);
             System.Int32            a1;
             checkType(l, 2, out a1);
             var ret = self.setIterations(a1);
             pushValue(l, ret);
             return(1);
         }
         else if (argc == 3)
         {
             GoTweenCollectionConfig self = (GoTweenCollectionConfig)checkSelf(l);
             System.Int32            a1;
             checkType(l, 2, out a1);
             GoLoopType a2;
             checkEnum(l, 3, out a2);
             var ret = self.setIterations(a1, a2);
             pushValue(l, ret);
             return(1);
         }
         return(error(l, "No matched override function to call"));
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 2
0
    public AbstractGoTweenCollection(GoTweenCollectionConfig config)
    {
        // allow events by default
        allowEvents = true;

        // setup callback bools
        _didInit  = false;
        _didBegin = false;

        // flag the onIterationStart event to fire.
        // as long as goTo is not called on this tween, the onIterationStart event will fire
        _fireIterationStart = true;

        // copy the TweenConfig info over
        id         = config.id;
        loopType   = config.loopType;
        iterations = config.iterations;
        updateType = config.propertyUpdateType;
        timeScale  = 1;
        state      = GoTweenState.Paused;

        _onInit           = config.onInitHandler;
        _onBegin          = config.onBeginHandler;
        _onIterationStart = config.onIterationStartHandler;
        _onUpdate         = config.onUpdateHandler;
        _onIterationEnd   = config.onIterationEndHandler;
        _onComplete       = config.onCompleteHandler;

        Go.addTween(this);
    }
    public AbstractGoTweenCollection( GoTweenCollectionConfig config )
    {
        // allow events by default
        allowEvents = true;

        // setup callback bools
        _didInit = false;
        _didBegin = false;

        // flag the onIterationStart event to fire.
        // as long as goTo is not called on this tween, the onIterationStart event will fire
        _fireIterationStart = true;

        // copy the TweenConfig info over
        id = config.id;
        loopType = config.loopType;
        iterations = config.iterations;
        updateType = config.propertyUpdateType;
        timeScale = 1;
        state = GoTweenState.Paused;

        _onInit = config.onInitHandler;
        _onBegin = config.onBeginHandler;
        _onIterationStart = config.onIterationStartHandler;
        _onUpdate = config.onUpdateHandler;
        _onIterationEnd = config.onIterationEndHandler;
        _onComplete = config.onCompleteHandler;

        Go.addTween( this );
    }
 static public int get_autoClear(IntPtr l)
 {
     try {
         GoTweenCollectionConfig self = (GoTweenCollectionConfig)checkSelf(l);
         pushValue(l, self.autoClear);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int get_propertyUpdateType(IntPtr l)
 {
     try {
         GoTweenCollectionConfig self = (GoTweenCollectionConfig)checkSelf(l);
         pushEnum(l, (int)self.propertyUpdateType);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int clear(IntPtr l)
 {
     try {
         GoTweenCollectionConfig self = (GoTweenCollectionConfig)checkSelf(l);
         self.clear();
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
	public AbstractGoTweenCollection(GoTweenCollectionConfig config) {
		// copy the TweenConfig info over
		id = config.id;
		loopType = config.loopType;
		iterations = config.iterations;
		updateType = config.propertyUpdateType;
		_onComplete = config.onCompleteHandler;
		_onStart = config.onStartHandler;
		timeScale = 1;
		state = GoTweenState.Paused;
		Go.addTween( this );
	}
 static public int constructor(IntPtr l)
 {
     try {
         GoTweenCollectionConfig o;
         o = new GoTweenCollectionConfig();
         pushValue(l, o);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 9
0
 public AbstractGoTweenCollection(GoTweenCollectionConfig config)
 {
     // copy the TweenConfig info over
     id          = config.id;
     loopType    = config.loopType;
     iterations  = config.iterations;
     updateType  = config.propertyUpdateType;
     _onComplete = config.onCompleteHandler;
     _onStart    = config.onStartHandler;
     timeScale   = 1;
     state       = GoTweenState.Paused;
     Go.addTween(this);
 }
 static public int set_autoClear(IntPtr l)
 {
     try {
         GoTweenCollectionConfig self = (GoTweenCollectionConfig)checkSelf(l);
         System.Boolean          v;
         checkType(l, 2, out v);
         self.autoClear = v;
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int set_propertyUpdateType(IntPtr l)
 {
     try {
         GoTweenCollectionConfig self = (GoTweenCollectionConfig)checkSelf(l);
         GoUpdateType            v;
         checkEnum(l, 2, out v);
         self.propertyUpdateType = v;
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int set_iterations(IntPtr l)
 {
     try {
         GoTweenCollectionConfig self = (GoTweenCollectionConfig)checkSelf(l);
         System.Int32            v;
         checkType(l, 2, out v);
         self.iterations = v;
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int setUpdateType(IntPtr l)
 {
     try {
         GoTweenCollectionConfig self = (GoTweenCollectionConfig)checkSelf(l);
         GoUpdateType            a1;
         checkEnum(l, 2, out a1);
         var ret = self.setUpdateType(a1);
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int setAutoClear(IntPtr l)
 {
     try {
         GoTweenCollectionConfig self = (GoTweenCollectionConfig)checkSelf(l);
         System.Boolean          a1;
         checkType(l, 2, out a1);
         var ret = self.setAutoClear(a1);
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int onInit(IntPtr l)
 {
     try {
         GoTweenCollectionConfig         self = (GoTweenCollectionConfig)checkSelf(l);
         System.Action <AbstractGoTween> a1;
         LuaDelegation.checkDelegate(l, 2, out a1);
         var ret = self.onInit(a1);
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 16
0
    public AbstractGoTweenCollection(GoTweenCollectionConfig config)
    {
        // copy the TweenConfig info over
        id         = config.id;
        loopType   = config.loopType;
        iterations = config.iterations;
#if UNITY_EDITOR && !IGNORE_NOISY_TWEEN_WARNING
        if (iterations != 1)
        {
            Debug.LogWarning("Since this tween flow is looping, we will be updating after a tween is completed. Otherwise the tweens will not correctly loop");
        }
#endif
        updateType  = config.propertyUpdateType;
        _onComplete = config.onCompleteHandler;
        _onStart    = config.onStartHandler;
        timeScale   = 1;
        state       = GoTweenState.Paused;
        Go.addTween(this);
    }
 public AbstractGoTweenCollection(GoTweenCollectionConfig config)
 {
     base.allowEvents    = true;
     _didInit            = false;
     _didBegin           = false;
     _fireIterationStart = true;
     base.id             = config.id;
     base.loopType       = config.loopType;
     base.iterations     = config.iterations;
     base.updateType     = config.propertyUpdateType;
     base.timeScale      = 1f;
     base.state          = GoTweenState.Paused;
     _onInit             = config.onInitHandler;
     _onBegin            = config.onBeginHandler;
     _onIterationStart   = config.onIterationStartHandler;
     _onUpdate           = config.onUpdateHandler;
     _onIterationEnd     = config.onIterationEndHandler;
     _onComplete         = config.onCompleteHandler;
     Go.addTween(this);
 }
 static public int set_onCompleteHandler(IntPtr l)
 {
     try {
         GoTweenCollectionConfig         self = (GoTweenCollectionConfig)checkSelf(l);
         System.Action <AbstractGoTween> v;
         int op = LuaDelegation.checkDelegate(l, 2, out v);
         if (op == 0)
         {
             self.onCompleteHandler = v;
         }
         else if (op == 1)
         {
             self.onCompleteHandler += v;
         }
         else if (op == 2)
         {
             self.onCompleteHandler -= v;
         }
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 19
0
 public GoTweenFlow(GoTweenCollectionConfig config)
     : base(config)
 {
 }
Ejemplo n.º 20
0
 public GoTweenChain(GoTweenCollectionConfig config)
     : base(config)
 {
 }
Ejemplo n.º 21
0
 public GoTweenChain(GoTweenCollectionConfig config) : base(config)
 {
 }
Ejemplo n.º 22
0
 public GoTweenFlow(GoTweenCollectionConfig config) : base(config)
 {
     autoRemoveOnComplete = true;
 }
Ejemplo n.º 23
0
 public GoTweenFlow(GoTweenCollectionConfig config) : base(config)
 {
 }