- Home /
Question by
mihir solanki · Jun 30, 2015 at 04:28 PM ·
instantiateprefabmultiplayerprimitivessample
Spawnning an object other than primitive makes the function run again and again
hey i was just working around with the appwarp sample and used the appwarp.cs script to instantiate a capsule and move it around.but now i want to use it for my game in which i have a preftab for a player and not the primitive object.so i need to instantiate the player at runtime instead of the cube.i tried using the player preftab without static and it keeps instantiating many of its clones,whereas when i use primitive ones it spawns only one.i need to instantiate the player object but since obj is static i cannot assign a player.and removing static keyword makes it run again and again .plz help!
here'link texts the appwarp script
script.txt
(2.8 kB)
Comment