start of Shop system

grrr
This commit is contained in:
Kirabsol 2025-01-22 18:01:31 +01:00
parent b21d392ff6
commit 56f0f8f30f
15 changed files with 4068 additions and 3 deletions

19
Assets/Scripts/Cost.cs Normal file
View file

@ -0,0 +1,19 @@
using UnityEngine;
using UnityEngine.UI;
using TMPro;
using Unity.VisualScripting;
using System;
public class Cost : MonoBehaviour
{
private int cost;
[SerializeField] TextMeshProUGUI texteCout;
[SerializeField] TextMeshProUGUI unit;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
cost = GlobalsVariable.prices[unit.text];
texteCout.text = cost.ToString();
}
}