Ejemplo n.º 1
0
        //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>();
        }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     display = FindObjectOfType <DisplayEndUI>();
     hm      = FindObjectOfType <HealthManager>();
 }