Code: Select all
[System.Serializable]
public class ItemProperty
{
public string name;
public string textin;
public Sprite sprite;
public bool get;
}
I made the properties of the items to manage the items in the game.
There is also a boolean variable to indicate that an item has been obtained. All of this is managed by the inspector.
However, this prevents naninovell from saving or loading.
If you turn the game off and on, the item disappears.
Is there a function of Nanninovel to access Unity's inspector?
Or, is there a way to save or load variables created by Unity?