using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class AchievementsMenu : MonoBehaviour
{
public int TotalMoney;
[SerializeField] Button firstAch;
[SerializeField] bool isFirst;
void Start()
{
TotalMoney = PlayerPrefs.GetInt("TotalMoney");
Text buttonText = firstAch.GetComponentInChildren();
if (TotalMoney >= 1)
{
buttonText.text = "✔";
buttonText.color = Color.green;
}
else
{
buttonText.text = "X";
buttonText.color = Color.red;
}
}
public void Back()
{
SceneManager.LoadScene(0);
}
// Update is called once per frame
void Update()
{
}
}