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(); } void Start() { weaponSO = OnDemandLoader.Load("config/" + index); //thisText.text = $"{weaponSO.name}\n({weaponSO.value})"; } }