public void Init(Texture2D appIcon, string postFix, float scaleFactor, FresviiGUIMyProfile frameMyProfile, int guiDepth)
        {
            this.GuiDepth = guiDepth;
            this.appIcon = appIcon;
            this.title = FresviiGUIText.Get("MyProfile");
            this.frameMyProfile = frameMyProfile;

            if (Application.platform == RuntimePlatform.IPhonePlayer)
            {
                guiStyleTitle.font = null;
                guiStyleTitle.fontStyle = FontStyle.Bold;
                guiStyleEditButton.font = null;
            }

            palette = FresviiGUIColorPalette.Palette;

            guiStyleTitle.normal.textColor = FresviiGUIColorPalette.GetColor(FresviiGUIColorPalette.NavigationBarTitle);

            normalColor = guiStyleEditButton.normal.textColor = FresviiGUIColorPalette.GetColor(FresviiGUIColorPalette.NavigationBarNormal);

            texCoordsMenu = FresviiGUIColorPalette.GetTextureCoods(FresviiGUIColorPalette.NavigationBarBackground);

            texCoordsBorderLine = FresviiGUIColorPalette.GetTextureCoods(FresviiGUIColorPalette.NavigationBarUnderLine);

            this.backIcon = FresviiGUIManager.Instance.resourceManager.LoadTextureFromResource(FresviiGUIConstants.ResouceTextureFolderName + "/" + FresviiGUIConstants.BackIconTextureName + postFix, false);

            height *= scaleFactor;

            guiStyleTitle.fontSize = (int)(guiStyleTitle.fontSize * scaleFactor);

            guiStyleEditButton.fontSize = (int)(guiStyleEditButton.fontSize * scaleFactor);

            hMargin *= scaleFactor;

            vMargin *= scaleFactor;

            appIconPosition = FresviiGUIUtility.RectScale(appIconPosition, scaleFactor);

            editButtonPosition = FresviiGUIUtility.RectScale(editButtonPosition, scaleFactor);

            backButtonPosition = new Rect(vMargin, 0.5f * (height - backIcon.height), backIcon.width, backIcon.height);

            backButtonHitPosition = new Rect(0, 0, backButtonPosition.x + backButtonPosition.width + vMargin, height);
        }
 public void SetGUIMyProfile(FresviiGUIMyProfile frameMyProfile)
 {
     this.frameMyProfile = frameMyProfile;
 }
 public void SetGUIMyProfile(FresviiGUIMyProfile guiEdit)
 {
     this.guiMyProfile = guiEdit;
 }