Ejemplo n.º 1
0
 public void ForceAddToInventory(modularPlayerControllerVR player)
 {
     if (!alreadyInInventory)
     {
         Debug.Log("Should add to inventory");
         player.GetComponent <PlayerInventory>().AddItemToInventory(this.objInventoryItem);
         alreadyInInventory            = true;
         gameObject.transform.position = FindObjectOfType <DoorGoal>().transform.position;
         gameObject.SetActive(false);
     }
 }
Ejemplo n.º 2
0
 private void Start()
 {
     Player = FindObjectOfType <modularPlayerControllerVR>();
 }