Tutorial done

This commit is contained in:
Sewmina
2022-10-17 04:25:47 +05:30
parent 586dab72d6
commit eb59ea6984
23 changed files with 14789 additions and 216 deletions

View File

@@ -109,6 +109,10 @@ public class SkinShopManager : MonoBehaviour
return rarity;
}
public void SelectItem(int index){
skinShopItems[index].OnClick();
}
public void SelectItem(SkinShopItemData data, bool Available){
selectedSkin = data;
if(data==null){
@@ -143,7 +147,7 @@ public class SkinShopManager : MonoBehaviour
Populate();
}
void onBuy(){
public void onBuy(){
List<SkinShopItemData> skinsInSameRarity = new List<SkinShopItemData>();
foreach(SkinShopItemData skin in skinsAvailableToPurchase){
if(skin.skinType == selectedSkin.skinType){