Exemplo n.º 1
0
 /// <summary>
 /// Awake this instance.
 /// </summary>
 void Awake()
 {
     wavesInfo = FindObjectOfType <WavesInfo>();
     Debug.Assert(timeBar && highlightedFX && wavesInfo && timeBar && currentWaveText && maxWaveNumberText, "Wrong initial settings");
 }
Exemplo n.º 2
0
 /// <summary>
 /// Raises the enable event.
 /// </summary>
 void OnEnable()
 {
     wavesInfo = GetComponent <WavesInfo>();
     Debug.Assert(wavesInfo, "Wrong stuff settings");
 }