Esempio n. 1
0
 void OnTriggerStay2D(Collider2D coll)
 {
     if (coll.gameObject.tag == "Player" && Input.GetKeyDown(KeyCode.E))
     {
         Debug.Log("Player picked up " + weaponName);
         if (wa.getCurr() != null)
         {
             wa.DropWeapon();
         }
         wa.setWeapon(this.gameObject, weaponName);
         this.gameObject.SetActive(false);
     }
 }