Esempio n. 1
0
 internal static NetworkIdentity SpawnSceneObject(NetworkSceneId sceneId)
 {
     if (s_SpawnableObjects.ContainsKey(sceneId))
     {
         NetworkIdentity foundId = s_SpawnableObjects[sceneId];
         s_SpawnableObjects.Remove(sceneId);
         return(foundId);
     }
     return(null);
 }
Esempio n. 2
0
 // only used when fixing duplicate scene IDs duing post-processing
 public void ForceSceneId(int newSceneId)
 {
     m_SceneId = new NetworkSceneId((uint)newSceneId);
 }
Esempio n. 3
0
 public void Write(NetworkSceneId value)
 {
     WritePackedUInt32(value.Value);
 }