25 lines
584 B
C#
25 lines
584 B
C#
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})";
|
|
}
|
|
}
|