using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Main : MonoBehaviour
{
public Text ecocoinsText;
public Text moneyText;
public int ecocoins;
public int money;
public GameObject settingsPan;
public GameObject music;
public GameObject MusicButton;
public Text MusicButtonText;
public GameObject shopPan;
public GameObject exchPan;
public void shopPan_SH()
{
shopPan.SetActive(!shopPan.activeSelf);
}
public void exchPan_SH()
{
exchPan.SetActive(!exchPan.activeSelf);
}
public void settingsPan_SH()
{
settingsPan.SetActive(!settingsPan.activeSelf);
}
public void ButtonClicked()
{
ecocoins += 1;
ecocoinsText.text = "EcoCoins: " + ecocoins;
moneyText.text = "Money: " + money;
}
public void MusicButtonCl()
{
music.SetActive(!music.activeSelf);
MusicButtonText.text = "Музыка: ОТКЛ";
if(music.activeSelf)
{
MusicButtonText.text = "Музыка: ВКЛ";
}
}
}
public void shopPan_SH
{
shopPan.SetActive(!shopPan.activeSelf);
}
public void exchPan_SH
{
exchPan.SetActive(!exchPan.activeSelf);
}