- Home /
Question by
FlaflaTwo · May 15, 2014 at 02:47 PM ·
instantiatenetworkdestroy
Do Network.Destroy and Network.Instantiate work in Single Player?
Do Network.Destroy() and Network.Instantiate() work when Network.peerType == PeerType.Disconnected? Or do I need to do something along the lines of this:
if(Network.peerType == PeerType.Disconnected)
Destroy(gameObject); // or Instantiate(gameObject);
else
Network.Destroy(gameObject); // or Network.Instantiate(gameObject);
Comment
Your answer
Follow this Question
Related Questions
Network.Destroy and collision; destroying correct object. 1 Answer
Network.Destroy doesn't remove objects on other systems? 2 Answers
Can't seem to destroy instantiated objects. 1 Answer
Can a Network.Instantiate()'d object be Object.Destroy()'d? 0 Answers
Checking Instantiate/Destroy has been called | Checking number of scene GameObjects 1 Answer