Beispiel #1
0
        public void FillInEmail(EmailContent emailContent)
        {
            EmailWindow emailWindow = Instantiate(emailPrefab, emailSlots[m_currentEmailWindows.Count]);

            emailWindow.transform.localPosition = Vector3.zero;
            emailWindow.FillInContent(emailContent);
            emailWindow.Init(this);
            RegisterEmail(emailWindow);
        }
Beispiel #2
0
        public bool RegisterEmail(EmailWindow email)
        {
            if (!m_currentEmailWindows.Contains(email))
            {
                m_currentEmailWindows.Add(email);
                return(true);
            }

            return(false);
        }
Beispiel #3
0
        public bool UnRegisterEmail(EmailWindow email)
        {
            if (m_currentEmailWindows.Contains(email))
            {
                m_currentEmailWindows.Remove(email);
                Destroy(email.gameObject);
                return(true);
            }

            return(false);
        }