public void Register() { _playFabEvents = PlayFabEvents.Init(); _playFabEvents.OnLoginWithCustomIDRequestEvent += OnLoginWithCustomId; _playFabEvents.OnLoginResultEvent += OnLoginResult; }
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(); }
static PF() { PlayfabEvents = PlayFabEvents.Init(); PlayfabEvents.OnLoginResultEvent += PlayfabEvents_OnLoginResultEvent; PlayFabSettings.TitleId = AppSettings.ActiveConfig.PlayfabTitleId; }