Exemplo n.º 1
0
        public void Close()
        {
            if (_coroHandle != null)
            {
                _coroHandle.Stop();
            }

            _inTransition = true;
            _coroHandle   = CoroutineExecutor.CreateTask(CloseTransition());
            _coroHandle.Start();
        }
Exemplo n.º 2
0
        public void Open()
        {
            if (_coroHandle != null)
            {
                _coroHandle.Stop();
            }
            bubbleFrame.gameObject.SetActive(true);

            _inTransition = true;
            _coroHandle   = CoroutineExecutor.CreateTask(OpenTransition());
            _coroHandle.Start();

            RandomSoundPlayer.PlaySoundFx(openSound, 0.3f);
        }