Update Variable Between Scripts
Hey there, this isnt my first time updating between scripts so I dont entirely know the issue.
I have two scripts, 'GunController' (with the variable: 'public bool canFire;') in which I am trying to update in the script 'BulletController'
in theory i have the canfire updated in the start() of bulletcontroller for when the prefab spawns to make the bool false
and then when the object gets destroyed, it is then set to true
i will simplify the code to the main parts to make it obvious
BULLETCONTROLLER:
I have two scripts, 'GunController' (with the variable: 'public bool canFire;') in which I am trying to update in the script 'BulletController'
in theory i have the canfire updated in the start() of bulletcontroller for when the prefab spawns to make the bool false
and then when the object gets destroyed, it is then set to true
i will simplify the code to the main parts to make it obvious
BULLETCONTROLLER:
