public void SelectMessage(LootLockerGMMessage selectedMessage) { if (!readMessages) { StagesManager.instance.GoToStage(StagesManager.StageID.ReadMessages, selectedMessage); } else { readMessages?.GetComponent <ReadMessageScreen>()?.StartEasyPrefab(selectedMessage); } }
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 ?? ""; }
public void InitMessage(LootLockerGMMessage message) { Fill(message._new ? MessageState.Unread : MessageState.Read, message.summary); }