Ejemplo n.º 1
0
        bool m_textFxAnimDrawCall       = false;                // Denotes whether the subsequent OnFillVBO call has been triggered by TextFx or not

        protected override void OnEnable()
        {
            base.OnEnable();

            if (m_animation_manager == null)
            {
                m_animation_manager = new TextFxAnimationManager();
            }

            m_animation_manager.SetParentObjectReferences(gameObject, transform, this);
        }
        bool m_textFxAnimDrawCall       = false;                // Denotes whether the subsequent OnFillVBO call has been triggered by TextFx or not


        protected override void OnEnable()
        {
            base.OnEnable();

            if (m_animation_manager == null)
            {
                m_animation_manager = new TextFxAnimationManager();
            }

            m_animation_manager.SetParentObjectReferences(gameObject, transform, this);

            m_canvasRendererComp = GetComponent <CanvasRenderer> ();
        }
        Color[] m_forced_state_cols;                    // Verts stored for a one time rendering call

        protected override void OnEnable()
        {
            base.OnEnable();

            if (m_animation_manager == null)
            {
                m_animation_manager = new TextFxAnimationManager(new int[] { 1, 0, 3, 2 });
            }

            m_animation_manager.SetParentObjectReferences(gameObject, transform, this);

            if (!Application.isPlaying)
            {
                // Call to update mesh rendering
                UpdateGeometry();
            }
        }