Esempio n. 1
0
 public void SelectMessage(LootLockerGMMessage selectedMessage)
 {
     if (!readMessages)
     {
         StagesManager.instance.GoToStage(StagesManager.StageID.ReadMessages, selectedMessage);
     }
     else
     {
         readMessages?.GetComponent <ReadMessageScreen>()?.StartEasyPrefab(selectedMessage);
     }
 }
Esempio n. 2
0
        public void UpdateScreenData(ILootLockerStageData stageData)
        {
            LoadingManager.ShowLoadingScreen();
            LootLockerGMMessage selectedMessage = stageData as LootLockerGMMessage;

            if (!string.IsNullOrEmpty(selectedMessage.image))
            {
                messageImage.gameObject.SetActive(true);
                _ = DownloadImage(selectedMessage.image, messageImage);
            }
            else
            {
                messageImage.gameObject.SetActive(false);
                LoadingManager.HideLoadingScreen();
            }
            messageSummary.text = selectedMessage.summary ?? "";
            messageBody.text    = selectedMessage.body ?? "";
            messageTitle.text   = selectedMessage.title ?? "";
        }
Esempio n. 3
0
 public void InitMessage(LootLockerGMMessage message)
 {
     Fill(message._new ? MessageState.Unread : MessageState.Read, message.summary);
 }