void Awake() { Instance = this; OnConnected += OnConnectedToServer; if (ConnectOnAwake) { Connect(); } }
public WelcomeScreen() { InitializeComponent(); VersionLabel.Text = @"v " + Program.GetVersion(); FormClosed += WelcomeScreen_FormClosed; Ti = new TwitchIrc(); Ti.OnReceiveMessage += ReceiveMessage; Ti.OnConnected += TI_OnConnected; Ti.OnDisconnected += TI_OnDisconnected; Ti.OnUserJoin += Ti_OnUserJoin; Ti.OnUserLeave += Ti_OnUserLeave; if (Settings.Default.TwitchUsername != "" && Settings.Default.TwitchPassword != "") { ShowListenButton(); } }
void Awake() { Instance = this; OnConnected += OnConnectedToServer; if (ConnectOnAwake) Connect(); }
void Awake() { Instance = this; OnConnected += OnConnectedToServer; Channel = GameManagement.instance.getChannelName(); if (ConnectOnAwake) Connect(); }