Ejemplo n.º 1
0
 void OnCollisionEnter(Collision collision)
 {
     if (collision.gameObject.name == "Player")
     {
         Destroy(this.transform.parent.gameObject);
         gameManager.Items += 1;
         Debug.Log("Item collected!");
     }
     gameManager.PrintLootReport();
 }
 void OnCollisionEnter(Collision collision)
 {
     if (collision.gameObject.name == "Player")
     {
         Destroy(this.transform.parent.gameObject);
         Debug.Log("Item collected!");
         collision.gameObject.GetComponent <PlayerBehavior>().bulletSpeed *= 4f;
         gameManager.Items += 1;
         gameManager.PrintLootReport();
     }
 }