Example #1
0
    void Start()
    {
        PlayGameServices.enableDebugLog(true);

        // we always want to call init as soon as possible after launch. Be sure to pass your own clientId to init on iOS!
        // This call is not required on Android.
        //PlayGameServices.init( "YOUR_CLIENT_ID", true );
        PlayGameServices.init("160040154367.apps.googleusercontent.com", true);
    }
Example #2
0
    // Use this for initialization
    void Start()
    {
                                #if UNITY_ANDROID
        PlayGameServices.enableDebugLog(true);

        // we always want to call init as soon as possible after launch. Be sure to pass your own clientId to init on iOS!
        // This call is not required on Android.
        //PlayGameServices.init( "YOUR_CLIENT_ID", true );
        PlayGameServices.init("366869334068.apps.googleusercontent.com", true);

        PlayGameServices.authenticate();
                                #endif
    }
Example #3
0
    private void Init()
    {
        string s = MySocialPrime31EventListener.Instance.name;

        PlayGameServices.enableDebugLog(true);
#if UNITY_IPHONE
        // we always want to call init as soon as possible after launch. Be sure to pass your own clientId to init on iOS!
        // This call is not required on Android.
        //PlayGameServices.init("80302069049-5lm6co43b05m3im6usj6c8ccpg7q7570.apps.googleusercontent.com", false);//только для IOS.  Надо вставить clientID
        //PlayGameServices.init("5lm6co43b05m3im6usj6c8ccpg7q7570.apps.googleusercontent.com", false);
        PlayGameServices.init("80302069049.apps.googleusercontent.com", false); //так должно быть судя по этому скрину,  https://developers.google.com/games/services/images/consoleLocationOfClientId2.png
#endif
        //GPGManager.loadScoresSucceededEvent += Instance.loadScoresSucceededEvent;
    }