Ejemplo n.º 1
0
            public void Register()
            {
                _playFabEvents = PlayFabEvents.Init();

                _playFabEvents.OnLoginWithCustomIDRequestEvent += OnLoginWithCustomId;
                _playFabEvents.OnLoginResultEvent += OnLoginResult;
            }
Ejemplo n.º 2
0
        static PF()
        {
            PlayFabSettings.TitleId = RuntimeAppConfig.Instance.GetTitleId();
            CatalogVersion          = RuntimeAppConfig.Instance.GetCatalogVersion();
            CloudScriptRevision     = RuntimeAppConfig.Instance.GetCloudScriptRevision();

            PlayfabEvents = PlayFabEvents.Init();
            PlayfabEvents.OnGetTimeResultEvent += PlayfabEvents_OnGetTimeResultEvent;
            PlayfabEvents.OnGlobalErrorEvent   += PlayfabEvents_OnGlobalErrorEvent;

            // Creating all the helpers
            PushNotifications = new PushNotificationsHelper();
            CloudScript       = new CloudScriptHelper();
            Purchasing        = new PurchasingHelper();
            Inventory         = new InventoryHelper();
            Character         = new CharacterHelper();
            TitleData         = new TitleDataHelper();
            VC      = new VirtualCurrencyHelper();
            Catalog = new CatalogHelper();
            Login   = new LoginHelper();
            User    = new UserHelper();
        }
Ejemplo n.º 3
0
 static PF()
 {
     PlayfabEvents = PlayFabEvents.Init();
     PlayfabEvents.OnLoginResultEvent += PlayfabEvents_OnLoginResultEvent;
     PlayFabSettings.TitleId           = AppSettings.ActiveConfig.PlayfabTitleId;
 }