private void activeNewEventControlUI() { UIEventShow.SetActive(true); firstButtonGO.SetActive(true); audioSource.clip = audioClips[Random.Range(0, audioClips.Length)]; audioSource.Play(); textUIEventShow.text = actualRegionalEvent.GetPrincipalText(); imageBackGroundEvent.sprite = actualRegionalEvent.GetSpriteBackGround(); firstButtontextUIEventShow.text = actualRegionalEvent.GetFirstButtonText(); secondButtontextUIEventShow.text = actualRegionalEvent.GetSecondButtonText(); }
private void UpdateMenuFinishGameLoop(RegionalEvent regionalEvent) { MenuGameObject.SetActive(true); MenuEventGameObject.SetActive(false); playerArgMove.DiePlayer = true; textMenu.text = regionalEvent.GetPrincipalText(); textMenuButton.text = regionalEvent.GetFirstButtonText(); imageMenu.sprite = regionalEvent.GetSpriteBackGround(); }