Example #1
0
 public void Contact()
 {
     Data.Contact();
     if (Data.effectOnPickup)
     {
         //spawn effect
         Instantiate <GameObject>(Data.particleEffect, this.transform.position, Quaternion.identity);
     }
 }