public void Initialize(ClientWorld world, ClientStateSettings settings) { _world = world; _network = _world.GetClientNode(); _settings = (SpawnAvatarSettings)settings; _settings.Hide(); _transitionState = ClientStateId.NO_TRANSITION; }
public void OnUpdate() { _network.UpdateClient(); if( Time.time > _exitTime ) { _transitionState = ClientStateId.Playing; } }
public void Initialize( ClientWorld world, ClientStateSettings settings ) { _world = world; _settings = (ConnectToServerSettings)settings; _settings.Hide(); _transitionState = ClientStateId.NO_TRANSITION; _network = _world.GetClientNode(); int maxChars = _network.GetMaxMessageLength() / sizeof(char); _charBuffer = new char[maxChars]; _sb = new StringBuilder( maxChars ); }
public void OnUpdate() { _network.UpdateClient(); if( _network.IsConnectedToServer() && !_sentRoomNameRequest ) { SendRoomNameRequest(); } if( Time.time > _exitTime ) { _transitionState = ClientStateId.LoadClientRoom; } }
public void OnUpdate() { _network.UpdateClient(); if( !_load.isDone ) { return; } else if( _exitTime == 0f ) { _settings.display.text = "Room load completed."; _exitTime = Time.time + _world.GetMinimumDisplayTime(); } if( Time.time > _exitTime ) { _transitionState = ClientStateId.SpawnAvatar; } }