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