public virtual void Update()
 {
     if (moving != null)
     {
         moving.Update(Time.deltaTime);
         rect.anchoredPosition = moving.Lerp();
         if (moving.IsDone())
         {
             moving = null;
         }
     }
 }
Exemplo n.º 2
0
 void Update()
 {
     if (lerpPosition != null)
     {
         lerpPosition.Update(Time.deltaTime);
         rectTransform.anchoredPosition = lerpPosition.Lerp();
         if (lerpPosition.IsDone())
         {
             lerpPosition = null;
         }
     }
     if (IsSource && gameMain != null)
     {
         button.interactable = gameMain.CanMoveToDest(this);
     }
 }