12345678910111213141516171819202122232425 |
- using UnityEngine;
- using System.Collections;
- public class SwitcherMoveTreeHandler : MonoBehaviour
- {
- public ScreenBase UICompany;
- public ScreenBase UICreastmasTrees;
- void OnAwake () {
- UICompany.Show();
- UICreastmasTrees.Hide();
- }
-
- // Update is called once per frame
- void OnEnable () {
- UICompany.Show();
- UICreastmasTrees.Hide();
- }
- void OnClick()
- {
- UICompany.Hide();
- UICreastmasTrees.Show();
- }
- }
|