Skip to content

Commit 4c3dfe8

Browse files
committed
public coroutine
1 parent 34f8358 commit 4c3dfe8

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Assets/Others/Script/SupportPhoneStat.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,15 @@ IEnumerator ReportEnterScene()
6969

7070
public static void GetSupportedStat(OnResponse onRsp)
7171
{
72-
if (instance == null) { onRsp(null); return; }
72+
if (instance == null)
73+
{
74+
Debug.LogError("SupportPhoneStat instance = null");
75+
onRsp(null); return;
76+
}
7377
instance.StartCoroutine(FetchSupportedStat(onRsp));
7478
}
7579

76-
static IEnumerator FetchSupportedStat(OnResponse onRsp)
80+
public static IEnumerator FetchSupportedStat(OnResponse onRsp)
7781
{
7882
string req = HOST + "/index.php/PatchRecord/dump_stat";
7983
UnityWebRequest www = UnityWebRequest.Get(req);

0 commit comments

Comments
 (0)