private void OnTriggerEnter(Collider other) { if (other.CompareTag("Player")) { CollectedParticle.SetActive(true); UncollectedParticle.SetActive(false); Collected = true; blackboard.AddPlayerScore(1, transform.position); GetComponent <Collider>().enabled = false; transform.SetParent(other.transform); transform.localPosition = Vector3.zero + Vector3.up; } }