//public bool startedLevel; void Start() { fm = FindObjectOfType <FindMatch>(); display = FindObjectOfType <DisplayEndUI>(); //nm = FindObjectOfType<NotificationManager>(); criteria = GameObject.Find("Criteria").GetComponent <Criteria>(); currentHealth = min_neutralHealth; healthState = HealthStates.Sick; healthBar.SetHealth(min_neutralHealth); anim = GetComponent <Animator>(); audiosrc = GetComponent <AudioSource>(); }
// Start is called before the first frame update void Start() { display = FindObjectOfType <DisplayEndUI>(); hm = FindObjectOfType <HealthManager>(); }