Beispiel #1
0
 public static void Show(UIChooseDifficultItem difficultItem)
 {
     UiManager.Show <UIChoosePlayer>(view =>
     {
         view.Refresh(difficultItem);
     });
 }
Beispiel #2
0
    private void Refresh(UIChooseDifficultItem difficultItem)
    {
        _difficultItem      = difficultItem;
        _difficultItemScale = difficultItem.transform.localScale;
        _difficultItemPos   = difficultItem.transform.position;

        difficultItem.transform.SetParent(transform, false);
        difficultItem.StartFlash();
        DOVirtual.DelayedCall(0.4f, () =>
        {
            difficultItem.EndFlash();
            difficultItem.transform.DOMove(_bind.DiffEndPos.position, 0.3f);
            difficultItem.transform.DOScale(0.85f, 0.3f);
        });
    }