public void ActiveHeartBar() { GameObject tmpWarming = GameObject.Find("Warming"); tmpWarming.SetActive(false); GameObject getHealthGameObject = GameObject.Find("BossHeart"); health = getHealthGameObject.GetComponent <Health> () as Health; health.startHealth = hp; health.maxHealth = hp; health.AddHearts(health.startHealth / health.healthPerHeart); health.modifyHealth(hp); }