void ShowStatement(string statement) { var cmd = new ShowStatementCmd(); cmd.Statement = statement; Mediator.Instance.Publish <ShowStatementCmd>(cmd); }
void OnShowStatementCmd(ShowStatementCmd cmd) { Mediator.Instance.DeleteSubscriber <ShowStatementCmd>(OnShowStatementCmd); loginErrorText.text = cmd.Statement; }
void OnShowStatementCmd(ShowStatementCmd cmd) { Mediator.Instance.DeleteSubscriber <ShowStatementCmd>(OnShowStatementCmd); statementText.text = cmd.Statement; statementText.gameObject.SetActive(true); }