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
 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);
    }
    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;
 }
 internal PlayGamesLocalUser(PlayGamesPlatform plaf) :
     base("localUser", null, null)
 {
     mPlatform    = plaf;
     emailAddress = null;
 }
 internal PlayGamesLocalUser(PlayGamesPlatform plaf) : base("localUser", string.Empty, string.Empty)
 {
     this.mPlatform    = plaf;
     this.emailAddress = null;
     this.mStats       = null;
 }
 internal PlayGamesLocalUser(PlayGamesPlatform plaf)
     : base("localUser", null, null)
 {
     mPlatform = plaf;
     emailAddress = null;
 }
 internal PlayGamesLocalUser(PlayGamesPlatform plaf) {
     mPlatform = plaf;
 }
        internal PlayGamesAchievement()
        {
            PlayGamesPlatform instance = PlayGamesPlatform.Instance;

            this._002Ector(instance.ReportProgress);
        }