Exemplo n.º 1
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.tag.Equals("Player"))
     {
         PlayerPrefs.SetInt("Collectables", PlayerPrefs.GetInt("Collectables", 0) + 1);
         Wizard.AddCollectiable(1);
         Destroy(this.gameObject);
     }
 }