Quantcast
Channel: Questions in topic: "lockstep"
Viewing all articles
Browse latest Browse all 8

Find a GameObject without a reference

$
0
0
Hello everyone, I am building a RTS-Lockstep implementation right now and have a question: I successfully instantiate gameObjects on all clients, but now I want to destroy one of them. How do I identify a gameObject without a reference (because every client has another ref.)? First thing I thought of is giving the gameObject a "public int ID" via script, but then I would have to iterate over _all_ gameobjects to find the chosen one.` There must be a better way....

Viewing all articles
Browse latest Browse all 8

Trending Articles



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