Example #1
0
        /// <summary>
        /// Update the target / camera / etc. to match  the configuration values,
        /// then queue a render at the end of the frame (or, optionally, render instantly)
        /// </summary>
        /// <param name="instantRender"></param>
        public void UpdateDisplay(bool instantRender = false)
        {
            if (!Application.isPlaying && !started)
            {
                Start();
                SetStarted();
            }

            if (!started)
            {
                return;
            }

            Prepare();

            UpdateTargetPositioningAndScale();
            UpdateTargetCameraPositioningEtc();

            if (OnUpdateTarget != null)
            {
                OnUpdateTarget.Invoke();
            }

            Render(instantRender);
        }
Example #2
0
 public ValueTo(GameObject target) : base(target, iTween.ValueTo)
 {
     name             = new Name(this);
     from             = new From(this);
     to               = new To(this);
     time             = new Time(this);
     delay            = new Delay(this);
     speed            = new Speed(this);
     onstarttarget    = new OnStartTarget(this);
     onstartparams    = new OnStartParams(this);
     onstart          = new OnStart(this);
     onupdatetarget   = new OnUpdateTarget(this);
     onupdateparams   = new OnUpdateParams(this);
     onupdate         = new OnUpdate(this);
     oncompletetarget = new OnCompleteTarget(this);
     oncompleteparams = new OnCompleteParams(this);
     oncomplete       = new OnComplete(this);
     easetype         = new EaseType(this);
     looptype         = new LoopType(this);
     ignoretimescale  = new IgnoreTimeScale(this);
 }
Example #3
0
 /// <summary>
 /// Call update target
 /// </summary>
 private void UpdateTarget()
 {
     OnUpdateTarget?.Invoke();
 }