private void Awake() { WeaponDao.DatabasePath = "URI=file:" + Application.dataPath + "/Databases/Weapons.db"; text = GetComponent <Text>(); foreach (var weapon in WeaponDao.GetAll()) { text.text += weapon + "\n"; } }
public void Create() { WeaponDao.Insert(nameInput.text, int.Parse(costInput.text)); SceneManager.LoadScene("Read"); }