mirror of
https://github.com/DerTyp7/industrialize-unity.git
synced 2026-07-31 19:29:03 +02:00
a
This commit is contained in:
13
Assets/Items/testItem/StackSizeText.cs
Normal file
13
Assets/Items/testItem/StackSizeText.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
//! DEBUG TEXT
|
||||
public class StackSizeText : MonoBehaviour
|
||||
{
|
||||
public ItemObject itemObject;
|
||||
void Update()
|
||||
{
|
||||
gameObject.GetComponent<TMPro.TextMeshPro>().text = itemObject.stackSize.ToString();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user