private void OnRequestFillDates(IGameEvent e) { StandardSendGameEvent ssge = (StandardSendGameEvent)e; SaveDates S = (SaveDates)ssge.MyObject[0]; if (S == null) { Dados = new DadosDoJogador(); transform.position = new Vector3(4, 47, 0); } else { Dados = S.Dados; transform.position = S.Posicao; } particulaDoDanoMortal.SetActive(false); particulaDoMorrendo.SetActive(false); derrota.DesligarLosangulo(); atk.ChangeSwirdColor((int)dados.CorDeEspadaSelecionada); /* * EventAgregator.Publish(new StandardSendGameEvent(EventKey.changeMoneyAmount, Dados.Dinheiro)); * EventAgregator.Publish(new StandardSendGameEvent(EventKey.changeLifePoints, Dados.PontosDeVida,Dados.MaxVida)); * EventAgregator.Publish(new StandardSendGameEvent(EventKey.changeMagicPoints, Dados.PontosDeMana, Dados.MaxMana)); */ EventAgregator.Publish(EventKey.colorSwordShow); }