Example #1
0
        private void OnPlayerOpenedInventoryEvent(PlayerOpenedInventoryEvent evt)
        {
            InteractionEvent ievt = new InteractionEvent();

            ievt.kind = InteractionKind.Open;
            this.UpdateTasks(ievt, false);
        }
Example #2
0
 void OnInventoryToggled(PlayerOpenedInventoryEvent evt)
 {
     if (this.gameObject.activeSelf)
     {
         this.gameObject.SetActive(false);
     }
     else
     {
         this.gameObject.transform.LookAt(cam.transform);
         this.gameObject.transform.position = cam.transform.position + cam.transform.forward * inventoryDistance;
         this.gameObject.SetActive(true);
     }
 }