Public var in script over written by Inspector value

public float projectileSpeed = 10f; is getting ignored if I change its value in code but changing the value in the inspector does work. This may be expected or normal behaviour but I’m still trying to remember whats ‘normal’

Thanks all.

Privacy & Terms