Exemplo n.º 1
0
    /// <summary>
    /// hooks up the component object as the inspector target
    /// </summary>
    public virtual void OnEnable()
    {
        m_Component = (vp_UIAnchor)target;

        if(m_Component.Manager == null)
            m_Component.Manager = m_Component.transform.root.GetComponent<vp_UIManager>();

        m_Component.Manager.ForceUIRefresh();

        m_OldSide = m_Component.Side;
    }
Exemplo n.º 2
0
    /// <summary>
    /// hooks up the component object as the inspector target
    /// </summary>
    public virtual void OnEnable()
    {
        m_Component = (vp_UIAnchor)target;

        if (m_Component.Manager == null)
        {
            m_Component.Manager = m_Component.transform.root.GetComponent <vp_UIManager>();
        }

        m_Component.Manager.ForceUIRefresh();

        m_OldSide = m_Component.Side;
    }