Ejemplo n.º 1
0
 private void OnDestroy()
 {
     networkRoomManager.RoomSceneLoaded    -= BroadcastSelf;
     networkRoomManager.PlayerNamesChanged -= OnPlayerNameChanged;
     if (base.isLocalPlayer)
     {
         RoomPlayerUpdated?.Invoke(null);
     }
 }
Ejemplo n.º 2
0
 private void BroadcastSelf()
 {
     RoomPlayerUpdated?.Invoke(this.gameObject.GetComponent <RoomPlayerCustom>());
 }