RealtimeRealtimedidConnectToRoomDidConnectToRoomusing UnityEngine;
using Normal.Realtime;
public class PlayerManager : MonoBehaviour {
private Realtime _realtime;
private void Awake() {
// Get the Realtime component on this game object
_realtime = GetComponent<Realtime>();
// Notify us when Realtime successfully connects to the room
_realtime.didConnectToRoom += DidConnectToRoom;
}
private void DidConnectToRoom(Realtime realtime) {
// This function will be called when the client successfully connects to the room
}
}