protected void Awake() { channel = new Channel("127.0.0.1:50051", ChannelCredentials.Insecure); stateClient = new State.StateClient(channel); var result = stateClient.Connect(new InitialConnectionRequest { Type = ClientType }); Token = result.Token; if (IdText != null) { IdText.text = "ID: " + Token + " | Type: " + ClientType; } NetworkedEntityCoordinator = new NetworkedEntityCoordinator(WorkerType, stateClient, TickRate, Token); NetworkedEntityCoordinator.DataStream(); }
public StateOne(StateClient client) { Client = client; }