when i shoot a bullet it comes out everything works fine but i keep getting an error saying
"the referenced script on this behaviour (gameobject ) is missing"
but like i said when you shoot everything works fine here is the code the error says its in row 29 ill mark it to show
//The Bullet instantiation happens here.
GameObject Temporary_Bullet_Handler;
right here -------> Temporary_Bullet_Handler = Instantiate(Bullet, Bullet_Emitter.transform.position, Bullet_Emitter.transform.rotation) as GameObject;
Temporary_Bullet_Handler.transform.Rotate(Vector3.left * 90);
Rigidbody Temporary_RigidBody;
Temporary_RigidBody = Temporary_Bullet_Handler.GetComponent();
Temporary_RigidBody.AddForce(transform.forward * Bullet_Forward_Force);
Destroy(Temporary_Bullet_Handler, 10.0f);
↧