12345678910111213141516171819202122232425262728293031 |
- using UnityEngine;
- using UnityEngine.UI;
- using System.Collections;
- public class ButtonBuyVIP : MonoBehaviour
- {
- public Text priceText;
- public string defaultPrice;
- // Use this for initialization
- void Start ()
- {
- //setBought(true);
- }
- public void setBought(bool value)
- {
- GetComponent<Button>().interactable = !value;
- if(value)
- {
- priceText.text = Language.GetStr("bought");
- }
- else
- {
- priceText.text = defaultPrice;
- }
- }
- }
|