Ejemplo n.º 1
0
    void Awake()
    {
        Instance = this;

        OnConnected += OnConnectedToServer;

        if (ConnectOnAwake)
        {
            Connect();
        }
    }
Ejemplo n.º 2
0
        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();
            }
        }
Ejemplo n.º 3
0
    void Awake()
    {
        Instance = this;

        OnConnected += OnConnectedToServer;

        if (ConnectOnAwake)
            Connect();
    }
Ejemplo n.º 4
0
    void Awake()
    {
        Instance = this;

        OnConnected += OnConnectedToServer;
        Channel = GameManagement.instance.getChannelName();

        if (ConnectOnAwake)
            Connect();
    }