Ejemplo n.º 1
0
        public void LeaveRoom()
        {
            var proto = new network.LeaveRoomRequest();

            GameManager.TCPInstance.Send(new Protobuf()
            {
                Proto = proto, ProtoID = ProtoNameIds.LEAVEROOMREQUEST
            });
            SelectRoom = null;
            BattleData.Instance.Reset();
        }
Ejemplo n.º 2
0
        public void LeaveRoom()
        {
            var proto = new network.LeaveRoomRequest();

            GameManager.TCPInstance.Send(new Protobuf()
            {
                Proto = proto, ProtoID = ProtoNameIds.LEAVEROOMREQUEST
            });
            SelectRoom = null;
            if (PlayerPrefs.HasKey("lastGame"))
            {
                PlayerPrefs.DeleteKey("lastGame");
            }
            BattleData.Instance.Reset();
        }