gameObject does not re-enable itself in the switch statement
so i have a switch statement setup so that depending on the in-game day, a gameobject would appear/disappear however after "case 3" it does not read the rest of the code and set the game object back to true..... idk why it does that. so when its day 4, the gameobject not longer shows up.
7 Replies
i have used break points and line 87 does not get read at all
Do you know what SetActive does?
yeah it enables the gameoject in the scene. so that's its active in the scene?
also changing to a bool does not work
gameObject
refers to the object this script is attached to correct? What do you think happens to the gameObject and this script when you SetActive(false)
on day 3.ohhhhhhhhhhhhhh
shit
so is there a better way of doing this?
cause a "if statement" would result in the same issue
yeah i figured it out
anyway try shortening ur case statement