public void Update() { exp_bar.Update(); if (level1) { health = gameObject.GetComponent <PlayerController>().health; } else { health = gameObject.GetComponent <Health>().health; } exp_bar.setValue((int)health); //if (exp_bar.getLevel() - last_level >= 1) //{ // // level changed: change stuff here // //Debug.Log("DING! You Are Now Level " + exp_bar.getLevel()); // last_level = exp_bar.getLevel(); //} //health_bar.Update(); //mana_bar.Update(); //globe_test_bar.Update(); }