Exemplo n.º 1
0
        private void Start()
        {
            if (ColorThemeTag != "")
            {
                mColorTheme = GetColorTheme(ColorThemeTag);
            }

            if (PositionThemeTag != "")
            {
                mPositionTheme = GetVector3Theme(PositionThemeTag);
            }
        }
Exemplo n.º 2
0
        public override void SetTheme()
        {
            if (ColorThemeTag != "")
            {
                mColorTheme         = GetColorTheme(ColorThemeTag);
                mCheckColorThemeTag = ColorThemeTag;
            }

            if (PositionThemeTag != "")
            {
                mPositionTheme         = GetVector3Theme(PositionThemeTag);
                mCheckPositionThemeTag = PositionThemeTag;
            }
        }
        /// <summary>
        /// Find a Vector3InteractiveTheme by tag
        /// </summary>
        /// <param name="tag"></param>
        /// <returns></returns>
        public Vector3InteractiveTheme GetVector3Theme(string tag)
        {
            // search locally
            Vector3InteractiveTheme[] vector3Themes = InteractiveHost.GetComponentsInChildren <Vector3InteractiveTheme>();
            Vector3InteractiveTheme   theme         = FindVector3Theme(vector3Themes, tag);

            // search globally
            if (theme == null)
            {
                vector3Themes = FindObjectsOfType <Vector3InteractiveTheme>();
                theme         = FindVector3Theme(vector3Themes, tag);
            }

            return(theme);
        }
Exemplo n.º 4
0
 public override void SetTheme()
 {
     mScaleTheme    = GetVector3Theme(ThemeTag);
     mCheckThemeTag = ThemeTag;
 }
 /// <summary>
 /// Get the theme
 /// </summary>
 private void Start()
 {
     mPositionTheme = GetVector3Theme(ThemeTag);
 }
Exemplo n.º 6
0
 public override void SetTheme()
 {
     mPositionTheme = GetVector3Theme(ThemeTag);
     mCheckThemeTag = ThemeTag;
 }
Exemplo n.º 7
0
 /// <summary>
 /// Get the Theme
 /// </summary>
 private void Start()
 {
     mScaleTheme = GetVector3Theme(ThemeTag);
 }