public static void OnStart(TextMeshPro __instance) { if (__instance != null && OnStartDict.TryGetValue(__instance.m_CachedPtr, out var action)) { OnStartDict.Remove(__instance.m_CachedPtr); MOD.RunLater(() => action?.Invoke(__instance)); } }
public static void SetName(InnerPlayerControl __instance, string LFBNFBOLLNN, bool PKGCJHDPPAF) { if (PlayerControl.LocalPlayer == null || ((PlayerInfo)__instance).Name == "") { return; } if (PlayerControl.LocalPlayer == __instance) { MOD.RunLater(() => Process.Lobby(PlayerInfo.All), 2000); } else { Process.PlayerJoin(__instance); } UIVoIP.CreateVoipMark(); VoIPConnection.SetArgs(new ConnectEventArgs { GameCode = Singleton.GameStartManager.GameRoomName.text.Split('\n')[1], GameName = PlayerControl.LocalPlayer.nameText.name, ID = PlayerControl.LocalPlayer.PlayerId }); }