(Hopefully) simple question about PunNetwork.Destroy
Hi all,
So my scenario is simple: Let's say that I have an object that is just part of the world, put into the scene during level design directly in the unity editor (let's say a wooden crate). That crate has a behavior on it that lets me do damage to it and destroy it. If I want to remove it from the scene when someone breaks it, can I call
Cheers!
So my scenario is simple: Let's say that I have an object that is just part of the world, put into the scene during level design directly in the unity editor (let's say a wooden crate). That crate has a behavior on it that lets me do damage to it and destroy it. If I want to remove it from the scene when someone breaks it, can I call
Punnetwork.Destroy(crateObject)
on it even though it wasn't instantiated using PunNetwork.InstantiateSceneObject
? If not, is there are generally accepted best practice for how to handle this kind of situation?Cheers!
0