コード例 #1
0
 public _PokeBall(string newName, string newDescription, float newCatchRate, int newCost, int newWorth, PokeBallTypes newPBType, _Item.ItemTypes newType)
 {
     name         = newName;
     description  = newDescription;
     icon         = Resources.Load <Sprite>("Sprites/PokeBalls/" + name);
     catchRate    = newCatchRate;
     cost         = newCost;
     worth        = newWorth;
     pokeBallType = newPBType;
     type         = newType;
 }
コード例 #2
0
 public PokeBall(string name, string description, float catchRate, int cost, int worth, PokeBallTypes pokeBallType, ItemCategories category)
 {
     base.name         = name;
     base.description  = description;
     icon              = Resources.Load <Sprite>("Sprites/PokeBalls/" + base.name);
     this.catchRate    = catchRate;
     base.cost         = cost;
     base.worth        = worth;
     this.pokeBallType = pokeBallType;
     base.category     = category;
 }