private void OnEnable() { bought = UserUnlockable.isItemActive(itemIndex); if (bought) { valueUI.text = "OWNED"; } else { valueUI.text = value.ToString(); } }
//special effect private void specialEffect() { if (UserUnlockable.isItemActive(SPECIAL_INDEX_HEALTH)) { fullHealth(); } if (UserUnlockable.isItemActive(SPECIAL_INDEX_TIME)) { moreTime(); } UserUnlockable.disableAllItems(); }