void ShowCurrentMail() { if (m_specialmailconfig._specialEmailToLoad.Count > 0) { for (int i = 0; i < m_specialmailconfig._specialEmailToLoad.Count; i++) { Debug.Log(m_specialmailconfig._Titles[i] + " " + m_specialmailconfig._SenderName[i] + "" + m_specialmailconfig._EmailBody[i]); EmailContent emailContent = new EmailContent(); emailContent.TITLE = m_specialmailconfig._Titles[i]; emailContent.SENDER = m_specialmailconfig._SenderName[i]; emailContent.BODY_TEXT = m_specialmailconfig._EmailBody[i]; m_EmailManager.FillInEmail(emailContent); } m_specialmailconfig._specialEmailToLoad.Clear(); } EndingChecking(); //Debug.Log("Showing Mail ID: "+m_config._LevelEmailID[EmailProgressNum]); }
void ShowCurrentMail() { if (m_specialmailconfig._specialEmailToLoad.Count > 0) { for (int i = 0; i < m_specialmailconfig._specialEmailToLoad.Count; i++) { Debug.Log(m_specialmailconfig._Titles[m_specialmailconfig._specialEmailToLoad[i]] + " " + m_specialmailconfig._SenderName[m_specialmailconfig._specialEmailToLoad[i]] + "" + m_specialmailconfig._EmailBody[m_specialmailconfig._specialEmailToLoad[i]]); EmailContent emailContent = new EmailContent(); emailContent.TITLE = m_specialmailconfig._Titles[m_specialmailconfig._specialEmailToLoad[i]]; emailContent.SENDER = m_specialmailconfig._SenderName[m_specialmailconfig._specialEmailToLoad[i]]; emailContent.BODY_TEXT = m_specialmailconfig._EmailBody[m_specialmailconfig._specialEmailToLoad[i]]; m_EmailManager.FillInEmail(emailContent); } m_specialmailconfig._specialEmailToLoad.Clear(); } //Debug.Log("Showing Mail ID: "+m_config._LevelEmailID[EmailProgressNum]); string emailIDstring = m_config._LevelEmailID[EmailProgressNum]; string[] emailID = emailIDstring.Split(','); if (emailID.Length <= 0) { Debug.LogError("Email ID Parse Error!"); } for (int i = 0; i < emailID.Length; i++) { Debug.Log(m_mailconfig._Titles[int.Parse(emailID[i])] + " " + m_mailconfig._SenderName[int.Parse(emailID[i])] + "" + m_mailconfig._EmailBody[int.Parse(emailID[i])]); EmailContent emailContent = new EmailContent(); emailContent.TITLE = m_mailconfig._Titles[int.Parse(emailID[i])]; emailContent.SENDER = m_mailconfig._SenderName[int.Parse(emailID[i])]; emailContent.BODY_TEXT = m_mailconfig._EmailBody[int.Parse(emailID[i])]; m_EmailManager.FillInEmail(emailContent); } }