This code should work fine. Does your bullet actually reference the bullet object? Perhaps you are accidentally referencing a prefab.
Also, you should not use Time.deltaTime in the FixedUpdate (called every 0.02s), only in the Update (called every frame), since it actually provides you with the duration of the last frame.
↧