Beispiel #1
0
 private void OnTriggerStay(Collider other)
 {
     if (other.CompareTag("Player"))
     {
         at.updateVariables(timer, collectable_type);
     }
 }
Beispiel #2
0
 private void actions()
 {
     Instantiate(pickup_effect, transform.position, transform.rotation);
     at.updateVariables(timer, collectable_type);
     Destroy(gameObject);
 }