public void Update() { if (_container.IsEmpty) { return; } MessageDataAccount m = _container.Get().Data as MessageDataAccount; if (m.State == _state) { if (m.Success) { SetStateAllOff(); TextInfo.text = "Luck!"; ObjInfo.SetActive(true); ObjOk.SetActive(true); } else { TextInfo.text = "Error, try again"; } } if (m.State == MessageDataAccount.StateType.SignIn) { Menu.SetStateSignIn(m.Success); } else if (m.State == MessageDataAccount.StateType.SignOut) { Menu.SetStateSignIn(!m.Success); } }
// Update is called once per frame void Update() { if (!_container.IsEmpty) { MessageDataChat m = _container.Get() as IMessageData as MessageDataChat; OutputChat.text += "\n" + m.Line; } }
void Update() { if (!_container.IsEmpty) { MessageDataProfile m = _container.Get() as IMessageData as MessageDataProfile; IUserProfile p = new UserProfile(); p.Nick = m.Nick; UpdateProfile(p); } }