예제 #1
0
    private void changeParentChatMode()
    {
        GameObject gameObject = GameObject.Find("Main");

        if (null != gameObject)
        {
            Lobby component = gameObject.GetComponent <Lobby>();
            if (null != component)
            {
                component.lobbyChat.ChatMode = chatMode;
            }
            Briefing4TeamMatch component2 = gameObject.GetComponent <Briefing4TeamMatch>();
            if (null != component2)
            {
                component2.lobbyChat.ChatMode = chatMode;
            }
            BattleChat component3 = gameObject.GetComponent <BattleChat>();
            if (null != component3)
            {
                component3.ChatMode = chatMode;
            }
            SquadingMain component4 = gameObject.GetComponent <SquadingMain>();
            if (null != component4)
            {
                component4.lobbyChat.ChatMode = chatMode;
            }
            SquadMain component5 = gameObject.GetComponent <SquadMain>();
            if (null != component5)
            {
                component5.lobbyChat.ChatMode = chatMode;
            }
        }
    }
예제 #2
0
    private void VerifyChatView()
    {
        GameObject gameObject = GameObject.Find("Main");

        if (null != gameObject)
        {
            Lobby component = gameObject.GetComponent <Lobby>();
            if (null != component)
            {
                chatView = component.bChatView;
            }
            Briefing4TeamMatch component2 = gameObject.GetComponent <Briefing4TeamMatch>();
            if (null != component2)
            {
                chatView = component2.bChatView;
            }
            BattleChat component3 = gameObject.GetComponent <BattleChat>();
            if (null != component3)
            {
                chatView = component3.IsChatting;
            }
            SquadingMain component4 = gameObject.GetComponent <SquadingMain>();
            if (null != component4)
            {
                chatView = true;
            }
            SquadMain component5 = gameObject.GetComponent <SquadMain>();
            if (null != component5)
            {
                chatView = true;
            }
        }
    }