private void OnDestroy() { if (_ircConnection != null) { _ircConnection.Disconnect(); } }
private void OnDestroy() { if (_ircConnection != null) { _ircConnection.ColorOnDisconnect = TwitchPlaySettings.data.TwitchBotColorOnQuit; _ircConnection.Disconnect(); } }
private bool ConnectDisconnect() { Audio.PlaySound(KMSoundOverride.SoundEffect.ButtonPress, transform); if (IRCConnection.Instance == null) { return(false); } if (IRCConnection.Instance.State == IRCConnectionState.Disconnected) { IRCConnection.Connect(); } else { IRCConnection.Disconnect(); } return(false); }