Exemplo n.º 1
0
 private void TimeTickedEventHandler(object sender, TimeTickedEventArgs e)
 {
     if (e.FromT < this.triggerT && e.ToT >= this.triggerT)
     {
         this.TriggeredThis();
     }
 }
 private void TimeTickedEventHandler(object sender, TimeTickedEventArgs e)
 {
     this.target.backgroundColor = this.gradient.Evaluate(e.ToT);
 }
 private void TimeTickedEventHandler(object sender, TimeTickedEventArgs e)
 {
     this.target.gameObject.transform.position = Vector3.Lerp(this._a, this._b, e.ToT);
 }
Exemplo n.º 4
0
        private void TimeTickedEventHandler(object sender, TimeTickedEventArgs e)
        {
            int percentage = (int)(e.ToT * 100.0f);

            this.textGUI.text = percentage + "%";
        }