public void OnVisualStateChange(UIController inController, UIController.VisualState inState, bool inValue)
    {
        if (inState == UIController.VisualState.Shown)
        {
            InitHud();
        }
        else
        {
            // we clear out the hand first ?
            ClearHandPanel();

            HideCards();

            gameObject.SetActive(false);

            if (previewPanel != null)
            {
                DoCleanUpCardPreview();
            }

            if (dealPanel != null)
            {
                foreach (Transform child in dealPanel.transform)
                {
                    Destroy(child.gameObject);
                }
            }

            cardContainer.SetActive(false);
        }
    }
Пример #2
0
 public void OnVisualStateChange(UIController inController, UIController.VisualState inState, bool inValue)
 {
     if (inState == UIController.VisualState.Shown)
     {
         InitSplashScreen();
     }
     else
     {
         gameObject.SetActive(false);
     }
 }
        public void OnVisualStateChange(UIController inController, UIController.VisualState inState, bool inValue)
        {
            if (inState == UIController.VisualState.Shown)
            {
                InitDialog();
            }
            else
            {
                PositiveAction  = null;
                NegativeAction  = null;
                Title           = "";
                DialogSetupType = DialogType.None;

                gameObject.SetActive(false);
            }
        }