예제 #1
0
 public void HomeLoadClick()
 {
     CanvasTheme.SetActive(false);
     CanvasHome.SetActive(true);
     FindObjectOfType <MainCamera>().BackGroundColorFuntion();
     FindObjectOfType <ThemeSprite>().ThemeImageFuntion();
 }
예제 #2
0
        public void ChangeDocumentTheme(VisualElement documentElement, CanvasTheme canvasTheme, ThemeStyleSheet themeSheet)
        {
            m_CurrentCanvasTheme = canvasTheme;
            m_CurrentCanvasThemeStyleSheetReference = themeSheet;

            if (themeSheet)
            {
                themeSheet.isDefaultStyleSheet = true;
            }
            RefreshStyle(documentElement);
        }
예제 #3
0
 public void ThemeButtonClick()
 {
     CanvasHome.SetActive(false);
     CanvasTheme.SetActive(true);
 }
예제 #4
0
 public void ChangeDocumentTheme(VisualElement documentElement, CanvasTheme canvasTheme)
 {
     m_CurrentCanvasTheme = canvasTheme;
     RefreshStyle(documentElement);
 }
예제 #5
0
 public void ChangeDocumentTheme(VisualElement documentElement, CanvasTheme canvasTheme, ThemeStyleSheet themeSheet)
 {
     m_CurrentCanvasTheme           = canvasTheme;
     m_CurrentCanvasThemeStyleSheet = themeSheet;
     RefreshStyle(documentElement);
 }