public void BtnNo() { noBtn(); gameObject.SetActive(false); ClearButtons(); UiEventAgregator.Publish(UIEventKey.confirmationPanelBtnNo); }
public void ThisUpdate(bool input) { if (input) { UiEventAgregator.Publish(UIEventKey.closeMessagePanel); BtnCallback(); } }
public void OnInputNext() { switch (phase) { case MessagePhase.messageFilling: UiEventAgregator.Publish(UIEventKey.mensagemEnchendo); //EventAgregator.Publish(new StandardSendGameEvent(GameController.g.gameObject, EventKey.disparaSom, SoundEffectID.Book1.ToString())); uiText.text = textForMessage; phase = MessagePhase.messageFill; break; case MessagePhase.messageFill: UiEventAgregator.Publish(UIEventKey.mensgemCheia); //EventAgregator.Publish(new StandardSendGameEvent(GameController.g.gameObject, EventKey.disparaSom, SoundEffectID.Book1.ToString())); phase = MessagePhase.bocGoingOut; timeCount = 0; break; case MessagePhase.boxOut: UiEventAgregator.Publish(UIEventKey.caixaDeTextoIndo); //EventAgregator.Publish(new StandardSendGameEvent(GameController.g.gameObject, EventKey.disparaSom, SoundEffectID.Book1.ToString())); messagePanel.anchoredPosition = originalPos; phase = MessagePhase.messageFilling; break; case MessagePhase.bocGoingOut: startMens = false; phase = MessagePhase.boxExited; UiEventAgregator.Publish(UIEventKey.caixaDeTextoSaiu); messageArrayIndex++; break; /* * EventAgregator.Publish(new StandardSendStringEvent(GameController.g.gameObject, SoundEffectID.Book1.ToString(), EventKey.disparaSom)); * painelDaMens.anchoredPosition = new Vector2(painelDaMens.anchoredPosition.x, Screen.height); * fase = FasesDaMensagem.caixaSaiu; * break;*/ } }