Provides access to the Google Play Games platform. This is an implementation of UnityEngine.SocialPlatforms.ISocialPlatform. Activate this platform by calling the Activate method, then authenticate by calling the Authenticate method. After authentication completes, you may call the other methods of this class. This is not a complete implementation of the ISocialPlatform interface. Methods lacking an implementation or whose behavior is at variance with the standard are noted as such.
Inheritance: ISocialPlatform
コード例 #1
0
 internal PlayGamesLocalUser(PlayGamesPlatform plaf)
     : base("localUser", string.Empty, string.Empty)
 {
     mPlatform = plaf;
     emailAddress = null;
     mStats = null;
 }
コード例 #2
0
    public static void InitializeInstance(PlayGamesClientConfiguration configuration) {
        if (sInstance != null) {
            Logger.w("PlayGamesPlatform already initialized. Ignoring this call.");
            return;
        }

        sInstance = new PlayGamesPlatform(configuration);
    }
コード例 #3
0
    private void Awake()
    {
        // Configure the Google Play Games setup
        PlayGamesClientConfiguration googlePlayConfig = new PlayGamesClientConfiguration.Builder().Build();

        PlayGamesPlatform.InitializeInstance(googlePlayConfig);
        PlayGamesPlatform.DebugLogEnabled = true;

        // Activate the Google Play Games service
        GooglePlayGames.PlayGamesPlatform.Activate();

        // Use the "CanPromptOnce" flow to try to automatically sign them in
        GooglePlayGames.PlayGamesPlatform.Instance.Authenticate(GooglePlayGames.BasicApi.SignInInteractivity.CanPromptOnce, OnAttemptSilentLogIn);
    }
 internal PlayGamesLocalUser(PlayGamesPlatform plaf)
 {
     mPlatform = plaf;
     mAvatarUrl = null;
 }
コード例 #5
0
 internal PlayGamesLocalUser(PlayGamesPlatform plaf)
 {
     this.mPlatform = plaf;
 }
コード例 #6
0
 internal PlayGamesAchievement() : this(new GooglePlayGames.ReportProgress(instance.ReportProgress))
 {
     PlayGamesPlatform instance = PlayGamesPlatform.Instance;
 }
コード例 #7
0
 internal PlayGamesLocalUser(PlayGamesPlatform plaf)
 {
     mPlatform  = plaf;
     mAvatarUrl = null;
     mImage     = null;
 }
コード例 #8
0
 internal PlayGamesLocalUser(PlayGamesPlatform plaf) :
     base("localUser", null, null)
 {
     mPlatform    = plaf;
     emailAddress = null;
 }
コード例 #9
0
 internal PlayGamesLocalUser(PlayGamesPlatform plaf) : base("localUser", string.Empty, string.Empty)
 {
     this.mPlatform    = plaf;
     this.emailAddress = null;
     this.mStats       = null;
 }
コード例 #10
0
 internal PlayGamesLocalUser(PlayGamesPlatform plaf)
     : base("localUser", null, null)
 {
     mPlatform = plaf;
     emailAddress = null;
 }
コード例 #11
0
 internal PlayGamesLocalUser(PlayGamesPlatform plaf) {
     mPlatform = plaf;
 }
コード例 #12
0
        internal PlayGamesAchievement()
        {
            PlayGamesPlatform instance = PlayGamesPlatform.Instance;

            this._002Ector(instance.ReportProgress);
        }