Commit 509c8e01 authored by nanahira's avatar nanahira

fix

parent 655ab19c
using UnityEngine; using UnityEngine;
using UnityEngine.Networking; using UnityEngine.Networking;
using System; using System;
using System.Text;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
...@@ -49,7 +50,7 @@ public class MatchObject : JSONObject { ...@@ -49,7 +50,7 @@ public class MatchObject : JSONObject {
} }
public class MyCardHelper { public class MyCardHelper {
string username; string username = null;
int userid = 0; int userid = 0;
public bool login(string name, string password, out string fail_reason) { public bool login(string name, string password, out string fail_reason) {
try { try {
...@@ -86,7 +87,7 @@ public class MyCardHelper { ...@@ -86,7 +87,7 @@ public class MyCardHelper {
public string requestMatch(string match_type, out string fail_reason) { public string requestMatch(string match_type, out string fail_reason) {
string ret; string ret;
if (!username || !userid) { if (username == null || !userid) {
fail_reason = "Not logged in"; fail_reason = "Not logged in";
return null; return null;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment