unity spawn object behind player code example
Example: how to instantiate an object behind another object in unity
Instantiate( prefab, transform.position + ( transform.right * distance), transform.rotation );
Instantiate( prefab, transform.position + ( transform.right * distance), transform.rotation );