// Update is called once per frame void Update() { ZaHando(); // The Hand of player if (Input.GetKeyUp(KeyCode.E)) { if (itemInRange != null && itemInRange.state == ItemState.ENABLED) // is item enabled { if (itemInRange.category == ItemCategory.READABLE) { isPlayerReading = isPlayerReading ? noteManager.HideNote() : noteManager.DisplayNote(itemInRange.objectName); // switch between reading state } else { itemManager.InteractWithItem(itemInRange); } } } }