private void Update() { //Debug commands if (Input.GetKeyDown(KeyCode.F11)) { AddItem(m_ItemList.GetItemDefinition(0), 1); } if (Input.GetKeyDown(KeyCode.F12)) { AddItem(m_ItemList.GetItemDefinition(1), 1); } }
public void Deserialize(JSONClass itemNode) { int id = (itemNode["item_id"].AsInt); m_ItemDefinition = m_ItemListDefinition.GetItemDefinition(id); m_Amount = itemNode["amount"].AsInt; }