Пример #1
0
        private IEnumerator CompleteAnimation(float delayToComplete)
        {
            yield return(StartCoroutine(TimeUtil.WaitForRealSeconds(delayToComplete)));

            if (OnCompleteAnimation != null)
            {
                OnCompleteAnimation(this);
            }

            if (OwnerPanel != null)
            {
                OwnerPanel.CompleteTask();
            }
        }