public LoginService(Packet packet) : base(packet) { _receivingLoginPacket = (ReceivingLoginPacket)packet; _alertAnimator = GameObject.Find("Alert Panel").GetComponent <Animator>(); _alertMessage = GameObject.Find("Alert Message").GetComponent <Text>(); _inputId = GameObject.Find("ID InputField").GetComponent <InputField>(); _inputPw = GameObject.Find("PW InputField").GetComponent <InputField>(); }
public Player(ReceivingLoginPacket receivingLoginPacket) { Id = receivingLoginPacket.Id; Nickname = receivingLoginPacket.Nickname; TotalGame = receivingLoginPacket.TotalGame; Gold = receivingLoginPacket.Gold; Silver = receivingLoginPacket.Silver; Bronze = receivingLoginPacket.Bronze; SetLobbyUi(); }