public virtual void Update() { if (moving != null) { moving.Update(Time.deltaTime); rect.anchoredPosition = moving.Lerp(); if (moving.IsDone()) { moving = null; } } }
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); } }