Ejemplo n.º 1
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.gameObject.CompareTag("Player"))
     {
         Debug.Log("Gem Picked Up");
         PlayerMoveScript player = collision.GetComponent <PlayerMoveScript>();
         player.pickupgem(this);
         managerscript.pickupsound();
         this.gameObject.SetActive(false);
     }
 }