private void OnPlayerOpenedInventoryEvent(PlayerOpenedInventoryEvent evt) { InteractionEvent ievt = new InteractionEvent(); ievt.kind = InteractionKind.Open; this.UpdateTasks(ievt, false); }
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); } }