How to Change the Variables of an Instantiated Object?
I tried looking up ways of doing this but most were in JavaScript and I got confused, I basically am trying to make a Binding of Isaac game where you shoot in 4 directions with the camera tilted down above the player. I am trying to make it so whenever I shoot a projectile, the clone will have some kind of variable telling it if I pressed up down left or right. I was going to make 4 separate prefabs for each but that would be messy and I want to learn more. thanks
Your answer
Follow this Question
Related Questions
Get a Insantiate particle system follow a GameObject 1 Answer
How to copy GameObject and preserve Prefab connection and Component values from editor script 2 Answers
Assign variables on Instantiation? 0 Answers
Im having an issue when Instantiate Prefab with specific rotation 2 Answers
Change value of a static variable multiple times in one script 2 Answers