Example #1
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.CompareTag("Player"))
     {
         VFXManager.SpawnParticleOneshot(VFXManager.instance.powerUpCollectVFX, transform.position, effect.backgroundColor);
         AudioManager.instance.Play("PickupDestroy");
         vaus.ReceivePowerUp(effect);
         DestroyPowerUp();
     }
 }