Пример #1
0
        private static IEnumerator Authenticate(Action <bool> callback)
        {
            var authenticated = false;

            PlayGamesServices.Authenticate(success =>
            {
                authenticated = true;
                callback.Invoke(success);
            });

            yield return(new WaitUntil(() => authenticated));
        }
        private void Authenticate()
        {
            ActivateAccountPanels(new[] { "loader" });

            PlayGamesServices.Authenticate(ChangeAccountState);
        }