Exemplo n.º 1
0
    void UpdateSpecifiedRightPage(LogRightPage_Updater rightPage, int personID, int activeEntryIndex = 0)
    {
        //print("UpdateSpecifiedRightPage. personID: " + personID + " , activePersonID: " + activePersonID);
        string fullText = "";

        if (allLog.ContainsKey(personID) && allLog[personID].Count > 0)
        {
            try
            {
                fullText = allLog[personID][activeEntryIndex].FullText;
            }
            catch (Exception e)
            {
                print("ERROR: personID: " + personID + ", activeEntryIndex: " + activeEntryIndex + ", avaliable entry: " + allLog[personID].Count);
            }
        }

        rightPage.UpdateContent(personHeadshots[personID], fullText);
    }