Esempio n. 1
0
 public void Interact()
 {
     //throw new System.NotImplementedException();
     if (sc.health < sc.maxHealth)
     {
         sc.Heal(energyGain);
         Instantiate(pickupEffect, transform.position, Quaternion.identity);
         Destroy(initialParent.gameObject);
     }
 }