public void LeaveRoom() { var proto = new network.LeaveRoomRequest(); GameManager.TCPInstance.Send(new Protobuf() { Proto = proto, ProtoID = ProtoNameIds.LEAVEROOMREQUEST }); SelectRoom = null; BattleData.Instance.Reset(); }
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(); }