UnityScripterAI
Discord ↗
Link Copied to Clipboard
×
"give hint to user on click"
public void HintClick() { if (prefmanager.instance.Gethintvalue() > 0) { hint.gameObject.GetComponent<Button>().interactable = false; LevelContainer.instance.OnHintClick(); int value = prefmanager.instance.Gethintvalue(); value--; prefmanager.instance.SetHintValue(value); Setaddtubeandhintvalue(); } else { // Enable Hint Offer for User WatchHintAd.gameObject.SetActive(true); } }