Ejemplo n.º 1
0
    void Initialize()
    {
        Debug.Log("Starting GameLogicChat");

        apg = new AudiencePlayersSys(this, recorder);

        if (UseSingleMachineTestNetworking)
        {
            IRCChat  = new NullNetwork();
            IRCLogic = new NullNetwork();
        }
        else
        {
            LoadNetworkSettings();

            IRCChat  = this.GetComponent <TwitchIRCChat>();
            IRCLogic = this.GetComponent <TwitchIRCLogic>();
        }
        IRCChat.SetOAuthFunc(() => settings.ChatOauth);
        IRCChat.SetChannelNameFunc(() => settings.ChatChannelName);
        IRCLogic.SetOAuthFunc(() => settings.LogicOauth);
        IRCLogic.SetChannelNameFunc(() => settings.LogicChannelName);
    }