1234567891011121314151617181920 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class TopManager : MonoSingleton<TopManager>
- {
- public GameObject root;
- public GameObject icon;
- public void exitUser()
- {
- LoginManager.Instance.ExitUser();
- WindowsManager.Instance.show(WindowConfig.windowType.Login);
- }
- private void OnEnable()
- {
- TopManager.Instance.root.SetActive(false);
- UserManager.Instance.MoveIcon(Vector3.zero, TopManager.Instance.icon.transform, () => { TopManager.Instance.root.SetActive(true); });
- }
- }
|