private void ClearJson() { json = null; jsonIndex = -1; jsonCombination = null; jsonCombinationIndex = -1; freeSpinTM.gameObject.SetActive(false); }
public void RStartSlot(ApiBridge.ResponseParam response) { Debug.Log("Return " + response.uri + " in " + response.post_time + " (Seed #" + response.seed.ToString() + ")\n" + response.post_data + "\n\nRaw = " + response.post_id); JStartSlot jsonStart = JsonUtility.FromJson <JStartSlot>(response.post_data); serverMoney = jsonStart.player.coin; json = jsonStart.slot; jsonIndex = 0; StartCoroutine(StopSpin(json.slot_spin[jsonIndex])); }