Example #1
0
 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";
     }
 }
Example #2
0
 public void Create()
 {
     WeaponDao.Insert(nameInput.text, int.Parse(costInput.text));
     SceneManager.LoadScene("Read");
 }