Hello everyone!
I’m pretty sure its the “Awake” function is called when a gameobject gets activated, but I have my weapon switching system “switch weapons” by disabling one gun and enabling the other.
When I make a variable = true and then switch weapons, it stays true and wont ever go back to false even though my Awake function makes it set false.
Why isnt it working?
If you look at the API doc about Awake, you can clearly see what the problem is.
OnEnable() might work better