public void OnBuy(bool randomUnlock) { if (randomUnlock || Progress.Instance.coins >= price) { Own(); ChangeSkin(); Progress.SaveInt(SAVE_KEY + skinName, 1); if (!randomUnlock) { ui.SetCoins((int)Progress.Instance.coins - price); } } }