Is didConnectToRoom realtime different from the original?
In this example:
There is _realtime and then in DidConnectToRoom realtime. Why are these different? I am logging both and they give different room.name results...
class OfflineModeExample {
[SerializeField]
private Realtime _realtime;
private void Start() {
// Notify us when Realtime successfully connects to the room
_realtime.didConnectToRoom += DidConnectToRoom;
// Connect to "My Room" in offline mode
_realtime.Connect("My Room", new Room.ConnectOptions {
offlineMode = true
});
}
private void DidConnectToRoom(Realtime realtime) {
if (realtime.room.offlineMode) {
Debug.Log($"Connected to room in offline mode!");
}
}
}There is _realtime and then in DidConnectToRoom realtime. Why are these different? I am logging both and they give different room.name results...