Пример #1
0
 void OnDestroy()
 {
     if (instance == this)
     {
         instance = null;
     }
     StopAllCoroutines();
     showTween.Kill(true);
     OnComplete -= GoToMinigame;
 }
Пример #2
0
 void Awake()
 {
     instance      = this;
     trailsManager = GetComponent <GamesSelectorTrailsManager>();
     tutorial      = GetComponentInChildren <GamesSelectorTutorial>(true);
 }