Firstborn/Assets/RPG Creation Kit/Scripts/Inventory System/DisplayTotalEncumbranceText.cs

14 lines
357 B
C#
Raw Permalink Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
using RPGCreationKit;
public class DisplayTotalEncumbranceText : MonoBehaviour
{
// Start is called before the first frame update
void OnEnable()
{
GetComponent<TextMeshProUGUI>().text = Inventory.PlayerInventory.Encumbrance.ToString();
}
}