Пример #1
0
 private void Awake()
 {
     spawner  = FindObjectOfType <IndicatorSpawner>();
     animator = GetComponent <Animator>();
     if (spawner == null)
     {
         Debug.LogError(Logger.NoComponentFound(typeof(IndicatorSpawner)));
     }
 }
Пример #2
0
 private void Awake()
 {
     image   = GetComponent <Image>();
     audio   = FindObjectOfType <AudioSource>();
     spawner = FindObjectOfType <IndicatorSpawner>();
 }