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