Exemplo n.º 1
0
    // Get Property Variables
    private void OnEnable()
    {
        // Get Target entity
        myPage = (MenuPage)target;

        // Get Variables
        m_ParentObject                = serializedObject.FindProperty("ParentObject");
        m_IsTitlePage                 = serializedObject.FindProperty("IsTitle");
        m_PagePrefab                  = serializedObject.FindProperty("DefualtPagePrefab");
        m_TextDisplayPrefab           = serializedObject.FindProperty("DefualtTextDisplayPrefab");
        m_MaxPages                    = serializedObject.FindProperty("MaxPages");
        m_TextDisplayPrefabEdgeSize   = serializedObject.FindProperty("EdgePixelSize");
        m_TextDisplayPrefabBufferSize = serializedObject.FindProperty("TitleBufferSize");
        m_CorrespondingPages          = serializedObject.FindProperty("CorrespondingPages");
        m_TextDisplayTitle            = serializedObject.FindProperty("TitleTextDisplay");
        m_TextDisplayExit             = serializedObject.FindProperty("ExitTextDisplay");
        m_MenuCenter                  = serializedObject.FindProperty("CenteredOnPixel");
        m_PageName                    = serializedObject.FindProperty("PageName");
        m_FollowingPages              = serializedObject.FindProperty("FollowingPagesTransform");
        NewPageName                   = serializedObject.FindProperty("NewPageName");
        Set = true;

        // Find Following Pages list
        myPage.FindCorrespondingPages();
    }