Пример #1
0
    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();
    }
Пример #2
0
 public void PopTile(StackPin stackPin)
 {
     transform.DOLocalMove(stackPin.GetEntryPoint(), 0.1f);
 }