Skip to content

Instantly share code, notes, and snippets.

@alexson
Last active January 13, 2022 09:36
Show Gist options
  • Save alexson/18253d32a2172da1f1a1d7b229b627dc to your computer and use it in GitHub Desktop.
Save alexson/18253d32a2172da1f1a1d7b229b627dc to your computer and use it in GitHub Desktop.
#region Spawn/Destory
public void SpawnObjectForAllPeers(Vector3 position, Quaternion rotation)
{
_spawnedObjectList.Add(_objectToNetworkSpawn.NetworkSpawn(position, rotation));
}
public void DestroyNetworkedUnityObject(NetworkedUnityObject objectToDestroy)
{
objectToDestroy.NetworkDestroy();
}
#endregion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment