Esempio n. 1
0
    void Animate()
    {
        this.gameObject.transform.DOMove(Destination, AnimateTime)
        .SetEase(EaseType)
        .OnComplete(() =>
        {
            NotificationsHandler notificationHandler = FindObjectOfType <NotificationsHandler>();

            if (notificationHandler != null)
            {
                notificationHandler.ShowNotification();
            }

            this.gameObject.SetActive(false);
        });
    }