void OnEnable() { if (null == WULogin.AvailableGames) { WULogin.LoadAvailableGames(); } s = (WPServer)target; serializedGameID = serializedObject.FindProperty("game_id"); overrideGameID = serializedObject.FindProperty("manual_select_game_id"); manualValue = serializedObject.FindProperty("manually_specified_id"); int i = index = last_index = 0; if (WULogin.AvailableGames.Count > 1) { for (i = 0; i < WULogin.AvailableGames.Count - 1; i++) { if (WULogin.AvailableGames [i + 1].Int("gid") == WPServer.GameID) { index = i; } } SetNewGameID(WULogin.AvailableGames [index + 1].Int("gid")); } else { SetNewGameID(1); } }
void FetchSubscription(CML ignore) => WPServer.ContactServer(WUExpActions.IsSubscribed, filepath, ASSET, null, TestResponse, ( CMLData result ) => Debug.LogWarning(result.String("message"))); //in 2018.1 change CMLData to CMLData