Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

  • 0
Sign in to follow this  
ProExtremePL

Missing component after NetworkServer.Destroy();

Question

Hey guys, I have a little problem with missing script.

I have a pick up script and I want to delete instances of picked up GameObject on all clients, but when I do that my Item class is missing in object even tho I created new instance of Item :/

 

Please login or register to see this code.

 

I'm probably missing something stupid and simple to solve :V Thanks for all help :)

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Ok, I solved it. I had to deeply copy Item class so I serialized it to JSON and deserialize it, should be efficent enough for just picking items :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...