예제 #1
0
            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>();
            }
예제 #2
0
        public Player(ReceivingLoginPacket receivingLoginPacket)
        {
            Id        = receivingLoginPacket.Id;
            Nickname  = receivingLoginPacket.Nickname;
            TotalGame = receivingLoginPacket.TotalGame;
            Gold      = receivingLoginPacket.Gold;
            Silver    = receivingLoginPacket.Silver;
            Bronze    = receivingLoginPacket.Bronze;

            SetLobbyUi();
        }