Ejemplo n.º 1
0
        protected virtual void OnEnable()
        {
            OnBaseEnable();

            m_Toggle = (ToggleBase)serializedObject.targetObject;

            m_Interactable = serializedObject.FindProperty("m_Interactable");

            m_Graphic   = serializedObject.FindProperty("m_Graphic");
            m_iconData  = serializedObject.FindProperty("m_Icon");
            m_LabelText = serializedObject.FindProperty("m_Label");
            m_GraphicChangesWithToggleState = serializedObject.FindProperty("m_ToggleGraphic");
            m_ToggleOnLabel  = serializedObject.FindProperty("m_ToggleOnLabel");
            m_ToggleOffLabel = serializedObject.FindProperty("m_ToggleOffLabel");
            m_ToggleOnIcon   = serializedObject.FindProperty("m_ToggleOnIcon");
            m_ToggleOffIcon  = serializedObject.FindProperty("m_ToggleOffIcon");

            m_AnimationDuration = serializedObject.FindProperty("m_AnimationDuration");

            m_ChangeGraphicColor   = serializedObject.FindProperty("m_ChangeGraphicColor");
            m_GraphicOnColor       = serializedObject.FindProperty("m_GraphicOnColor");
            m_GraphicOffColor      = serializedObject.FindProperty("m_GraphicOffColor");
            m_GraphicDisabledColor = serializedObject.FindProperty("m_GraphicDisabledColor");
            m_ChangeRippleColor    = serializedObject.FindProperty("m_ChangeRippleColor");
            m_RippleOnColor        = serializedObject.FindProperty("m_RippleOnColor");
            m_RippleOffColor       = serializedObject.FindProperty("m_RippleOffColor");
        }