SwitcherMoveTreeHandler.cs 422 B

12345678910111213141516171819202122232425
  1. using UnityEngine;
  2. using System.Collections;
  3. public class SwitcherMoveTreeHandler : MonoBehaviour
  4. {
  5. public ScreenBase UICompany;
  6. public ScreenBase UICreastmasTrees;
  7. void OnAwake () {
  8. UICompany.Show();
  9. UICreastmasTrees.Hide();
  10. }
  11. // Update is called once per frame
  12. void OnEnable () {
  13. UICompany.Show();
  14. UICreastmasTrees.Hide();
  15. }
  16. void OnClick()
  17. {
  18. UICompany.Hide();
  19. UICreastmasTrees.Show();
  20. }
  21. }