public void GetBalance() { if (!NetworkManager.THIS.IsLoggedIn) { return; } if (currencyMananager != null) { currencyMananager.GetBalance((balance) => { Debug.Log(balance); currentBalance = balance; if (currentBalance >= InitScript.Gems) { InitScript.Instance.SetGems(balance); } else { SetBalance(InitScript.Gems); } }); } }