Exemple #1
0
    public void UpdateChannel(CurrentEvent.Channels channel, Channel.Trump sideWith)
    {
        for (int i = 0; i < tvChannels.Count; i++)
        {
            switch (tvChannels[i].type)
            {
            case "Conservative":
                tvChannels[i].content = channel.Conservative[Random.Range(0, channel.Conservative.Count)];
                tvChannels[i].side    = sideWith;
                break;

            case "Liberal":
                tvChannels[i].content = channel.Liberal[Random.Range(0, channel.Liberal.Count)];
                tvChannels[i].side    = sideWith;
                break;

            default:
                tvChannels[i].content = "";
                tvChannels[i].side    = sideWith;
                break;
            }
        }
        ResetDisplay();
        newCyle.isTimeOver = false;
    }
Exemple #2
0
 public void UpdateChannel(string cName, string newContent, Channel.Trump sideWith)
 {
     for (int i = 0; i < tvChannels.Count; i++)
     {
         if (tvChannels[i].channelName.Equals(cName))
         {
             tvChannels[i].content = newContent;
             tvChannels[i].side    = sideWith;
         }
     }
     ResetDisplay();
 }
Exemple #3
0
    public void UpdateChannel(string cType, List <string> newContent, Channel.Trump sideWith)
    {
        //if (isTVDone)
        //{
        //    Debug.Log("change channell");

        //}
        Debug.Log("Change channel");
        for (int i = 0; i < tvChannels.Count; i++)
        {
            if (tvChannels[i].type.Equals(cType))
            {
                tvChannels[i].content = newContent[Random.Range(0, newContent.Count)];
                tvChannels[i].side    = sideWith;
            }
        }
        ResetDisplay();
        newCyle.isTimeOver = false;
    }
Exemple #4
0
    void AddChannel(string cName, string cType, string newContent, Channel.Trump sideWith)
    {
        Channel temp = new Channel(sideWith, cName, cType, newContent);

        tvChannels.Add(temp);
    }