30 lines
788 B
C#
30 lines
788 B
C#
using UnityEngine;
|
|
|
|
[CreateAssetMenu(fileName = "Chestdata", menuName = "Game/ChestdataObject", order = 1)]
|
|
public class ChestDataObject : ScriptableObject
|
|
{
|
|
public string name;
|
|
public int Price;
|
|
public float minGold;
|
|
public float maxGold;
|
|
public float minGems;
|
|
public float maxGems;
|
|
public float gemsChance;
|
|
|
|
public float commonChance;
|
|
public float rareChance;
|
|
public float legendaryChance;
|
|
|
|
public string getInfo(){
|
|
string items = $"Gold {minGold}-{maxGold}\n";
|
|
items += $"Gems : {minGems}-{maxGems} [{gemsChance}%]\n";
|
|
|
|
items += $"Common Skin : [{commonChance}%]\n";
|
|
items += $"Rare Skin : [{rareChance}%]\n";
|
|
items += $"Legendary Skin : [{legendaryChance}%]";
|
|
|
|
|
|
|
|
return items;
|
|
}
|
|
} |