Quantcast
Channel: Answers for "Prefab Variables Changing in the Original, Not the Copies"
Viewing all articles
Browse latest Browse all 4

Answer by William_Lee_Sims

$
0
0
Do two things: 1) Remove the yield statement from your Start() function. 2) Assign your "Instantiate(...)" to another variable like "var pClone = Instantiate...". Then use that variable to do the rest: "pClone.getComponent("Stats").Player = Player;" and so on.

Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>