// // Network Game Object Events // private void Client_Receive_GameObject(NetworkReader reader) { if (networkSocket.IsHost) { DevTools.Logger.LogError(NetworkService.NetworkLog, "Client Method called on a host."); return; } Pool.PoolDefinition poolDefinition = ServiceLocator.SaveService.SavedObjectReferences.GetSavedObject <Pool.PoolDefinition>(reader.ReadInt16()); NetworkGameObject networkObject = ServiceLocator.PoolService.SpawnDefinition <NetworkGameObject>(poolDefinition); networkObject.Client_ReceiveGameObject(this, reader); }
public SavedGameObject(Pool.PoolDefinition pool) { gameObjectPool = new SavedObjectReference <Pool.PoolDefinition>(pool); }