StartBtnContainer.cs 484 B

12345678910111213141516171819202122232425262728293031
  1. using UnityEngine;
  2. using UnityEngine.UI;
  3. using System.Collections;
  4. public class StartBtnContainer : MonoBehaviour
  5. {
  6. public Animator animator;
  7. public Text startLabel;
  8. public FreeVIPButton freeVIPBtn;
  9. void Awake()
  10. {
  11. startLabel.text = Language.GetStr ("MenuPage", "startBtn");
  12. }
  13. public void Show()
  14. {
  15. animator.Play (MenuUI.UIState.Show.ToString(), 0, 0);
  16. freeVIPBtn.Refresh ();
  17. }
  18. public void Hide()
  19. {
  20. animator.Play (MenuUI.UIState.Hide.ToString(), 0, 0);
  21. }
  22. }