protected override void HandleWorkerConnectionEstablished() { GameObjectCreationHelper.EnableStandardGameObjectCreation(Worker.World, new SyncTransObjectCreation(Worker), entityRepresentationMapping); WorkerUtils.AddClientSystems(Worker.World, false); this.ConnectionState = ConnectionState.ConnectionEstablished; }
protected override void HandleWorkerConnectionEstablished() { WorkerUtils.AddClientSystems(Worker.World, this.gameObject, false); var fieldSystem = Worker.World.GetExistingSystem <FieldQueryClientSystem>(); if (fieldSystem != null) { fieldSystem.OnQueriedEvent += CreatePlayerRequest; fieldSystem.SetXZPosition(pos.x, pos.z); } }