Beispiel #1
0
 public void LoginButtonHandler()
 {
     if (areFieldsEmpty())
     {
         popUpText.text = "Complete all fields!";
     }
     else
     {
         string hash = Singleton.Instance.getHashFromString(_Password);
         Singleton.Instance.Me = new User(_Username, false, false);
         MessagePacket packet = new MessagePacket(GameProtocol.LoginPacketID(), _Username + "|" + hash);
         Singleton.Instance.Connection.SendPacket(packet.getData());
     }
 }