void Awake() { analytics = GameObject.FindGameObjectWithTag("Analytics").GetComponent <LevelAnalytics>(); audio = GetComponent <AudioSource>(); wg = GameObject.FindGameObjectWithTag("WaveGenerator").GetComponent <WaveGenerator>(); anim = GetComponent <Animator>(); }
public void trigger() { if (LevelAnalytics.Exists() && !externalApplicationEnd) { LevelAnalytics.Instance.userFinishedLevel(); } }