/// <summary> /// Gets the tango service version. /// </summary> /// <returns>The tango service version.</returns> public static string GetTangoServiceVersion() { if (m_tangoServiceVersion == string.Empty) { m_tangoServiceVersion = AndroidHelper.GetVersionName("com.projecttango.tango"); } return(m_tangoServiceVersion); }
// 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()); }