コード例 #1
0
 public override void OnEnter()
 {
     if (isParentalLockEnabled != null)
     {
         isParentalLockEnabled.Value = (bool)SteamParentalSettings.BIsParentalLockEnabled();
     }
     if (isParentalLockLocked != null)
     {
         isParentalLockLocked.Value = (bool)SteamParentalSettings.BIsParentalLockLocked();
     }
     Finish();
 }
コード例 #2
0
    public void RenderOnGUI()
    {
        GUILayout.BeginVertical("box");
        m_ScrollPos = GUILayout.BeginScrollView(m_ScrollPos, GUILayout.Width(Screen.width - 215), GUILayout.Height(Screen.height - 33));

        GUILayout.Label("BIsParentalLockEnabled() : " + SteamParentalSettings.BIsParentalLockEnabled());

        GUILayout.Label("BIsParentalLockLocked() : " + SteamParentalSettings.BIsParentalLockLocked());

        GUILayout.Label("BIsAppBlocked(SteamUtils.GetAppID()) : " + SteamParentalSettings.BIsAppBlocked(SteamUtils.GetAppID()));

        GUILayout.Label("BIsAppInBlockList(SteamUtils.GetAppID()) : " + SteamParentalSettings.BIsAppInBlockList(SteamUtils.GetAppID()));

        GUILayout.Label("BIsFeatureBlocked(EParentalFeature.k_EFeatureTest) : " + SteamParentalSettings.BIsFeatureBlocked(EParentalFeature.k_EFeatureTest));

        GUILayout.Label("BIsFeatureInBlockList(EParentalFeature.k_EFeatureTest) : " + SteamParentalSettings.BIsFeatureInBlockList(EParentalFeature.k_EFeatureTest));

        GUILayout.EndScrollView();
        GUILayout.EndVertical();
    }