Beispiel #1
0
 /// <summary>
 /// Clear all the details about the item
 /// </summary>
 public void ClearItem()
 {
     ItemDetails            = null;
     PInventoryUIController = null;
     HasItem = false;
 }
 private void Start()
 {
     _playerMoveController = FindObjectOfType <MovementController>();
     _playerInventoryUI    = FindObjectOfType <PlayerInventoryUIController>();
 }
Beispiel #3
0
 /// <summary>
 /// Set metadata about the UI that is being displayed. Used for interaction.
 /// </summary>
 /// <param name="item">Reference to the inventory item it represents</param>
 /// <param name="playerInvUIController">Reference to the UI controller that the item reference exists on</param>
 public void SetItemData(Item item, PlayerInventoryUIController playerInvUIController)
 {
     ItemDetails            = item;
     PInventoryUIController = playerInvUIController;
     HasItem = true;
 }