Skip to content

Instantly share code, notes, and snippets.

@AlexChesser
Created May 31, 2019 18:40
Show Gist options
  • Save AlexChesser/8fad94506720398604c6893b34411221 to your computer and use it in GitHub Desktop.
Save AlexChesser/8fad94506720398604c6893b34411221 to your computer and use it in GitHub Desktop.
namespace MyGame {
public class MyItem {
public string Name { get; set; }
public string Price { get; set; }
public string Description { get; set; }
public string Whatever { get; set; }
}
public class MyShop : Monobehavior {
[SerializeField]
public List<MyItem> ShopItems;
public void MyShop(){
ShopItems = new List<MyItem> {
new MyItem {
Name = "lockpick",
Description = "a lockpick",
Price = "$45",
Whatever = "whatever",
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment