Exemplo n.º 1
0
    /*===================================== Continue ========================================*/
    public static ContinousTween Continous(GameObject target, XHash hash, float time = 1.0f, IEasing easing = null, uint frameSkip = 0, bool realTime = false)
    {
        ITimer         tick     = _ticker;
        ITimer         tickReal = _tickerReal;
        ContinousTween tween    = new ContinousTween(realTime ? tickReal : tick);

        tween.FrameSkip       = frameSkip;
        tween.time            = time;
        tween.easing          = (easing != null) ? easing : Linear.easeNone;
        tween.updater         = _updaterFactory.CreateContinous(target, hash, hash.GetStart());
        tween.ClassicHandlers = hash;
        return(tween);
    }
Exemplo n.º 2
0
    /*===================================== Continue ========================================*/
    public static ContinousTween Continous(GameObject target, XHash hash, float time, IEasing easing = null, uint frameSkip = 0, bool realTime = false)
    {
        ITimer         tick     = _ticker;
        ITimer         tickReal = _tickerReal;
        ContinousTween tween    = Pool <ContinousTween> .Pop();

        tween.Initialize(realTime ? tickReal : tick, 0);
        tween.Time            = time;
        tween.Easing          = (easing != null) ? easing : Linear.easeNone;
        tween.Updater         = UpdaterFactory.CreateContinous(target, hash, hash.GetStart());
        tween.ClassicHandlers = hash;
        return(tween);
    }