Пример #1
0
    public void Init()
    {
        if (_logic == null)
        {
            _logic = ServiceManager.Get <MagicCubeLogic>();
        }

        if (_TimerText == null)
        {
            _timerIsActive = false;
            LogManager.LogError("Timer Text is null, not starting update timer routine.");
            return;
        }
        gameObject.SetActive(true);
        _timerIsActive = true;
        StartCoroutine(UpdateTimer());
    }
Пример #2
0
 private void Start()
 {
     _logicController = ServiceManager.Get <MagicCubeLogic>();
     ServiceManager.Get <UIManager>().RegisterMenuUI(this);
 }
Пример #3
0
 public void Start()
 {
     _logicController = ServiceManager.Get <MagicCubeLogic>();
     ServiceManager.Get <UIManager>().RegisterGameUI(this);
 }