Created
May 31, 2019 18:40
-
-
Save AlexChesser/8fad94506720398604c6893b34411221 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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