public void PushTile(StackPin stackPin) { pin = stackPin; var position = stackPin.CalculateNextPosition(gameObject); var sequence = DOTween.Sequence(); if (!stackPin.pinIndex.Equals(pinIndex)) { sequence.Append(transform.DOLocalMove(stackPin.GetEntryPoint(), 0.2f)); } sequence.Append(transform.DOLocalMove(position, 0.1f)); sequence.Play(); }
public void PopTile(StackPin stackPin) { transform.DOLocalMove(stackPin.GetEntryPoint(), 0.1f); }