ClientServer/Client/Assets/Scripts/UI/ReadCostValue.cs

25 lines
584 B
C#
Raw Normal View History

2025-09-06 17:17:39 +04:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
//Thomas09 this script isnt used anymore.
public class ReadCostValue : MonoBehaviour
{
private Weapon weaponSO;
private int index;
private TextMeshPro thisText;
private void Awake()
{
index = int.Parse(transform.parent.name.Split('_')[2]);
thisText = GetComponent<TextMeshPro>();
}
void Start()
{
weaponSO = OnDemandLoader.Load<Weapon>("config/" + index);
//thisText.text = $"{weaponSO.name}\n({weaponSO.value})";
}
}