if (CanvasEnabled) {
GameObject Healthbars = GameObject.FindGameObjectsWithTag (“playerCanvas”);
for (int i = 0; i < Healthbars.Length; i++) {
Healthbars .SetActive (true);
-
}*
-
} else {*
-
GameObject[] Healthbars = GameObject.FindGameObjectsWithTag ("playerCanvas");*
-
for (int i = 0; i < Healthbars.Length; i++) {*
_ Healthbars .SetActive (false);_
* }*
* }*
The Healthbars do turn off but not on again. Any ideas? I tried Getcomponent().enabled = true too but that didnt work either.