Hi,
It seems like a silly question, because there should be a line of code that makes the disabling of my shooting script impossible, but there isn’t, and yet, it is!!![]()
The shooting script in question is a pretty standard raycast shooting with public camera and root to shoot assigned in the inspector.
In my multiplayer game, I start every match by checking if photon is mine, if so turn on the shooting script on ‘Start’. This is the only reference to the enablement of the shooting script. There’s literally nowhere else in any of my scripts where I tell the shooting script to stay on no matter what.
Yet, when my player gets an upgrade I switch to a different shooting script, and now the shooting script is blinking on and off, as though there’s a contradiction in my code somewhere, but THERE ISN’T !! I’m sorry i’m going nuts over this
It should switch off until the upgrade runs out of ammo… It makes zero sense.
Has anyone experienced something similar and maybe have a solution?