Пример #1
0
 /// Author: JT Esmond
 /// Date: 4/10/2021
 /// <summary>
 /// function that updates the values of the pop up variables for the interactables
 /// </summary>
 public void UpdateInteractableInfo(int x)
 {
     tempPopUp            = PopUpManager.Instance.PopUps[x];
     nameText.text        = tempPopUp.itemName;
     descriptionText.text = tempPopUp.description;
     artwork.sprite       = tempPopUp.art;
 }
Пример #2
0
 /// Author: JT Esmond
 /// Date: 4/8/2021
 /// <summary>
 /// Function that updates the values of the pop up variables for the Collectibles
 /// </summary>
 public void UpdateCollectableInfo(ScriptablePopUp popUp)
 {
     tempPopUp            = popUp;
     nameText.text        = popUp.itemName;
     descriptionText.text = popUp.description;
     artwork.sprite       = popUp.art;
 }