GetCurrentApplicationLabel() public static method

Gets the current application label.
public static GetCurrentApplicationLabel ( ) : string
return string
Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        m_isActive = false;

        m_buttonRect = new Rect((Screen.width * BUTTON_X_POSITION_RIGHT_ALIGNED) - BUTTON_WIDTH,
                                Screen.height * BUTTON_Y_POSITION_RIGHT_ALIGNED,
                                BUTTON_WIDTH,
                                BUTTON_HEIGHT);

        m_aboutScreenRect = new Rect((Screen.width * 0.5f) - (ABOUT_SCREEN_WIDTH * 0.5f),
                                     (Screen.height * 0.5f) - (ABOUT_SCREEN_HEIGHT * 0.5f),
                                     ABOUT_SCREEN_WIDTH,
                                     m_showLinkToChangeList ? ABOUT_SCREEN_HEIGHT * 3.0f : ABOUT_SCREEN_HEIGHT);

        m_applicationName    = AndroidHelper.GetCurrentApplicationLabel();
        m_applicationVersion = AndroidHelper.GetVersionName(AndroidHelper.GetCurrentPackageName());
    }