protected virtual void OnDoubleTap()
 {
     if (mMenuAnim && !mMenuAnim.IsVisible() && optionsConfig.AnyOptionsEnabled())
     {
         mMenuAnim.Show();
     }
 }
Beispiel #2
0
 protected override void OnDoubleTap()
 {
     if (optionsConfig.AnyOptionsEnabled())
     {
         base.OnDoubleTap();
     }
 }
Beispiel #3
0
    public void ShowOptionsMenu(bool show)
    {
        if (OptionsConfig && OptionsConfig.AnyOptionsEnabled())
        {
            var canvasGroup = GetComponent <CanvasGroup>();

            if (show)
            {
                UpdateUI();
            }

            canvasGroup.interactable   = show;
            canvasGroup.blocksRaycasts = show;
            canvasGroup.alpha          = show ? 1.0f : 0.0f;
            IsDisplayed = show;
        }
    }
Beispiel #4
0
 public void ShowOptionsMenu(bool show)
 {
     if (m_OptionsConfig && m_OptionsConfig.AnyOptionsEnabled())
     {
         if (show)
         {
             UpdateUI();
             m_OptionsMenuCanvas.gameObject.SetActive(true);
             m_OptionsMenuCanvas.enabled = true;
             IsDisplayed = true;
         }
         else
         {
             m_OptionsMenuCanvas.gameObject.SetActive(false);
             m_OptionsMenuCanvas.enabled = false;
             IsDisplayed = false;
         }
     }
 }