Tutorial done
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user