private void BuySkin() { if (ScoreController.Instance.CantTickets >= price) { SkinController.BuySkin(skin); ScoreController.Instance.CantTickets -= price; #if (UNITY_ANDROID || UNITY_IOS) if (Type != TicketType.Puntos) { GameCloudController.Instance.UnlockAchievement(GPGSlds.achievement_new_skin, true); } #endif } Refresh(); }
private void BuySkin() { if (ScoreController.Instance.CantTickets >= skin.Price) { ScoreController.Instance.CantTickets -= skin.Price; SkinController.BuySkin(skin.SkinReference); #if (UNITY_ANDROID || UNITY_IPHONE) if (Type != TicketType.Puntos) { GameCloudController.Instance.UnlockAchievement(GPGSlds.achievement_new_skin, true); } #endif } SelectSkin(); }