Beispiel #1
0
 void OnTriggerEnter(Collider coll)
 {
     if (coll.gameObject.CompareTag("Player"))
     {
         Pj = coll.GetComponent <PlayerScript>();
         //if(IdPlayer == Pj.IdPlayer)
         //{
         if (Pj.AgregarBolsa(this))
         {
             Desaparecer();
         }
         //}
     }
 }