update
This commit is contained in:
parent
3070895695
commit
711e8e421f
8
Assets/Samples.meta
Normal file
8
Assets/Samples.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 32aa6402a59712c4aa07142aa854f42c
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Samples/Analytics.meta
Normal file
8
Assets/Samples/Analytics.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 03951e7b576d07c4b85191eeada41975
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Samples/Analytics/6.0.3.meta
Normal file
8
Assets/Samples/Analytics/6.0.3.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a7daaf4779f4a79458ea07378958ad15
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Samples/Analytics/6.0.3/Standard Events.meta
Normal file
8
Assets/Samples/Analytics/6.0.3/Standard Events.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d3509ee89d399c24eb628459fe506136
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b0ed442aa2fcd4d33b84f5a73efa6c84
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,145 @@
|
||||
using System;
|
||||
using Unity.Services.Core;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Unity.Services.Analytics
|
||||
{
|
||||
public class AnalyticsEventHandler : MonoBehaviour
|
||||
{
|
||||
// Console Log visualiser, not required
|
||||
[SerializeField] Text consoleOutput;
|
||||
[SerializeField] ScrollRect consoleScrollRect;
|
||||
|
||||
void Awake()
|
||||
{
|
||||
Application.logMessageReceived += OnLogMessageReceived;
|
||||
}
|
||||
|
||||
void OnLogMessageReceived(string condition, string stacktrace, LogType type)
|
||||
{
|
||||
if (consoleOutput == null)
|
||||
return;
|
||||
|
||||
consoleOutput.text += $"{type}: {condition}\n";
|
||||
consoleScrollRect.normalizedPosition = Vector2.zero;
|
||||
}
|
||||
|
||||
void OnDestroy()
|
||||
{
|
||||
Application.logMessageReceived -= OnLogMessageReceived;
|
||||
}
|
||||
|
||||
// Analytics Sample
|
||||
async void Start()
|
||||
{
|
||||
await UnityServices.InitializeAsync();
|
||||
|
||||
Debug.Log($"Started UGS Analytics Sample with user ID: {AnalyticsService.Instance.GetAnalyticsUserID()}");
|
||||
}
|
||||
|
||||
public void GiveConsent()
|
||||
{
|
||||
AnalyticsService.Instance.StartDataCollection();
|
||||
|
||||
Debug.Log($"Consent has been provided. The SDK is now collecting data!");
|
||||
}
|
||||
|
||||
public void RecordMinimalAdImpressionEvent()
|
||||
{
|
||||
StandardEventSample.RecordMinimalAdImpressionEvent();
|
||||
Debug.Log("Record Minimal Ad Impression Event Finished");
|
||||
}
|
||||
|
||||
public void RecordCompleteAdImpressionEvent()
|
||||
{
|
||||
StandardEventSample.RecordCompleteAdImpressionEvent();
|
||||
Debug.Log("Record Complete Ad Impression Event Finished");
|
||||
}
|
||||
|
||||
public void RecordSaleTransactionWithOnlyRequiredValues()
|
||||
{
|
||||
StandardEventSample.RecordSaleTransactionWithOnlyRequiredValues();
|
||||
Debug.Log("Record Sale Transaction With Only Required Values Finished");
|
||||
}
|
||||
|
||||
public void RecordSaleTransactionWithRealCurrency()
|
||||
{
|
||||
StandardEventSample.RecordSaleTransactionWithRealCurrency();
|
||||
Debug.Log("Record Sale Transaction With Real Currency Finished");
|
||||
}
|
||||
|
||||
public void RecordSaleTransactionWithVirtualCurrency()
|
||||
{
|
||||
StandardEventSample.RecordSaleTransactionWithVirtualCurrency();
|
||||
Debug.Log("Record Sale Transaction With Virtual Currency Finished");
|
||||
}
|
||||
|
||||
public void RecordSaleTransactionWithMultipleVirtualCurrencies()
|
||||
{
|
||||
StandardEventSample.RecordSaleTransactionWithMultipleVirtualCurrencies();
|
||||
Debug.Log("Record Sale Transaction With Multiple Virtual Currencies Finished");
|
||||
}
|
||||
|
||||
public void RecordTradeEventWithOneItem()
|
||||
{
|
||||
StandardEventSample.RecordTradeEventWithOneItem();
|
||||
Debug.Log("Record Trade Event With One Item Finished");
|
||||
}
|
||||
|
||||
public void RecordTradeEventWithMultipleItems()
|
||||
{
|
||||
StandardEventSample.RecordTradeEventWithMultipleItems();
|
||||
Debug.Log("Record Trade Event With Multiple Items Finished");
|
||||
}
|
||||
|
||||
public void RecordSaleEventWithOptionalParameters()
|
||||
{
|
||||
StandardEventSample.RecordSaleEventWithOptionalParameters();
|
||||
Debug.Log("Record Sale Event With Optional Parameters Finished");
|
||||
}
|
||||
|
||||
public void RecordAcquisitionSourceEventWithOnlyRequiredValues()
|
||||
{
|
||||
StandardEventSample.RecordAcquisitionSourceEventWithOnlyRequiredValues();
|
||||
Debug.Log("Record Acquisition Source Event With Only Required Values Finished");
|
||||
}
|
||||
|
||||
public void RecordAcquisitionSourceEventWithOptionalParameters()
|
||||
{
|
||||
StandardEventSample.RecordAcquisitionSourceEventWithOptionalParameters();
|
||||
Debug.Log("Record Acquisition Source Event With Optional Parameters Finished");
|
||||
}
|
||||
|
||||
public void RecordPurchaseEventWithOneItem()
|
||||
{
|
||||
StandardEventSample.RecordPurchaseEventWithOneItem();
|
||||
Debug.Log("Record Purchase Event With One Item Finished");
|
||||
}
|
||||
|
||||
public void RecordPurchaseEventWithMultipleItems()
|
||||
{
|
||||
StandardEventSample.RecordPurchaseEventWithMultipleItems();
|
||||
Debug.Log("Record Purchase Event With Multiple Items Finished");
|
||||
}
|
||||
|
||||
public void RecordPurchaseEventWithMultipleCurrencies()
|
||||
{
|
||||
StandardEventSample.RecordPurchaseEventWithMultipleCurrencies();
|
||||
Debug.Log("Record Purchase Event With Multiple Currencies Finished");
|
||||
}
|
||||
|
||||
// Custom events require you to set them up on the dashboard before they can be used
|
||||
public void RecordCustomEventWithNoParameters()
|
||||
{
|
||||
CustomEventSample.RecordCustomEventWithNoParameters();
|
||||
Debug.Log("Record Custom Event With No Parameters Finished");
|
||||
}
|
||||
|
||||
public void RecordCustomEventWithParameters()
|
||||
{
|
||||
CustomEventSample.RecordCustomEventWithParameters();
|
||||
Debug.Log("Record Custom Event With Parameters Finished");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2a120d729a8447e5b857e8b5ded478ea
|
||||
timeCreated: 1646295520
|
||||
@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Unity.Services.Analytics
|
||||
{
|
||||
public class MyEvent : Event
|
||||
{
|
||||
public MyEvent() : base("myEvent")
|
||||
{
|
||||
}
|
||||
|
||||
public string FabulousString { set { SetParameter("fabulousString", value); } }
|
||||
public int SparklingInt { set { SetParameter("sparklingInt", value); } }
|
||||
public long TremendousLong { set { SetParameter("tremendousLong", value); } }
|
||||
public float SpectacularFloat { set { SetParameter("spectacularFloat", value); } }
|
||||
public double IncredibleDouble { set { SetParameter("incredibleDouble", value); } }
|
||||
public bool PeculiarBool { set { SetParameter("peculiarBool", value); } }
|
||||
}
|
||||
|
||||
public static class CustomEventSample
|
||||
{
|
||||
public static void RecordCustomEventWithNoParameters()
|
||||
{
|
||||
// NOTE: this will show up on the dashboard as an invalid event, unless
|
||||
// you have created a schema that matches it.
|
||||
AnalyticsService.Instance.RecordEvent("myEvent");
|
||||
}
|
||||
|
||||
public static void RecordCustomEventWithParameters()
|
||||
{
|
||||
// NOTE: this will show up on the dashboard as an invalid event, unless
|
||||
// you have created a schema that matches it.
|
||||
MyEvent myEvent = new MyEvent
|
||||
{
|
||||
FabulousString = "hello there",
|
||||
SparklingInt = 1337,
|
||||
TremendousLong = Int64.MaxValue,
|
||||
SpectacularFloat = 0.451f,
|
||||
IncredibleDouble = 0.000000000000000031337,
|
||||
PeculiarBool = true
|
||||
};
|
||||
|
||||
AnalyticsService.Instance.RecordEvent(myEvent);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 08e6ff10ed16c9648ac27efac047850c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,321 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Unity.Services.Analytics
|
||||
{
|
||||
public class StandardEventSample
|
||||
{
|
||||
public static void RecordMinimalAdImpressionEvent()
|
||||
{
|
||||
AdImpressionEvent adImpression = new AdImpressionEvent();
|
||||
adImpression.AdCompletionStatus = AdCompletionStatus.Completed;
|
||||
adImpression.AdProvider = AdProvider.UnityAds;
|
||||
adImpression.PlacementName = "PLACEMENTNAME";
|
||||
adImpression.PlacementId = "PLACEMENTID";
|
||||
|
||||
AnalyticsService.Instance.RecordEvent(adImpression);
|
||||
}
|
||||
|
||||
public static void RecordCompleteAdImpressionEvent()
|
||||
{
|
||||
AdImpressionEvent adImpression = new AdImpressionEvent();
|
||||
adImpression.AdCompletionStatus = AdCompletionStatus.Completed;
|
||||
adImpression.AdProvider = AdProvider.UnityAds;
|
||||
adImpression.PlacementName = "PLACEMENTNAME";
|
||||
adImpression.PlacementId = "PLACEMENTID";
|
||||
adImpression.PlacementType = AdPlacementType.BANNER;
|
||||
adImpression.AdEcpmUsd = 123.4;
|
||||
adImpression.AdSdkVersion = "1.2.3";
|
||||
adImpression.AdImpressionId = "IMPRESSIVE";
|
||||
adImpression.AdStoreDestinationId = "DSTID";
|
||||
adImpression.AdMediaType = "MOVIE";
|
||||
adImpression.AdTimeWatchedMs = 1234;
|
||||
adImpression.AdTimeCloseButtonShownMs = 5678;
|
||||
adImpression.AdLengthMs = 2345;
|
||||
adImpression.AdHasClicked = false;
|
||||
adImpression.AdSource = "ADSRC";
|
||||
adImpression.AdStatusCallback = "STATCALL";
|
||||
|
||||
AnalyticsService.Instance.RecordEvent(adImpression);
|
||||
}
|
||||
|
||||
public static void RecordSaleTransactionWithOnlyRequiredValues()
|
||||
{
|
||||
TransactionEvent transaction = new TransactionEvent();
|
||||
transaction.TransactionName = "emptySale";
|
||||
transaction.TransactionType = TransactionType.SALE;
|
||||
|
||||
AnalyticsService.Instance.RecordEvent(transaction);
|
||||
}
|
||||
|
||||
public static void RecordSaleTransactionWithRealCurrency()
|
||||
{
|
||||
TransactionEvent transaction = new TransactionEvent();
|
||||
transaction.TransactionName = "sellItem";
|
||||
transaction.TransactionType = TransactionType.SALE;
|
||||
transaction.SpentItems.Add(new TransactionItem
|
||||
{
|
||||
ItemName = "thePickOfDestiny",
|
||||
ItemAmount = 1,
|
||||
ItemType = "collectable"
|
||||
});
|
||||
transaction.ReceivedRealCurrency = new TransactionRealCurrency
|
||||
{
|
||||
RealCurrencyType = "EUR",
|
||||
RealCurrencyAmount = AnalyticsService.Instance.ConvertCurrencyToMinorUnits("EUR", 3.99)
|
||||
};
|
||||
|
||||
AnalyticsService.Instance.RecordEvent(transaction);
|
||||
}
|
||||
|
||||
public static void RecordSaleTransactionWithVirtualCurrency()
|
||||
{
|
||||
TransactionEvent transaction = new TransactionEvent();
|
||||
transaction.TransactionName = "sellItem";
|
||||
transaction.TransactionType = TransactionType.SALE;
|
||||
transaction.SpentItems.Add(new TransactionItem
|
||||
{
|
||||
ItemName = "elucidator",
|
||||
ItemAmount = 1,
|
||||
ItemType = "sword"
|
||||
});
|
||||
transaction.ReceivedVirtualCurrencies.Add(new TransactionVirtualCurrency
|
||||
{
|
||||
VirtualCurrencyType = VirtualCurrencyType.GRIND,
|
||||
VirtualCurrencyAmount = 125000,
|
||||
VirtualCurrencyName = "Cor"
|
||||
});
|
||||
|
||||
AnalyticsService.Instance.RecordEvent(transaction);
|
||||
}
|
||||
|
||||
public static void RecordSaleTransactionWithMultipleVirtualCurrencies()
|
||||
{
|
||||
TransactionEvent transaction = new TransactionEvent();
|
||||
transaction.TransactionName = "sellItem";
|
||||
transaction.TransactionType = TransactionType.SALE;
|
||||
transaction.SpentItems.Add(new TransactionItem
|
||||
{
|
||||
ItemName = "darkRepulser",
|
||||
ItemAmount = 1,
|
||||
ItemType = "weapon"
|
||||
});
|
||||
transaction.ReceivedVirtualCurrencies.Add(new TransactionVirtualCurrency
|
||||
{
|
||||
VirtualCurrencyType = VirtualCurrencyType.PREMIUM,
|
||||
VirtualCurrencyAmount = 100,
|
||||
VirtualCurrencyName = "Soul Points"
|
||||
});
|
||||
transaction.ReceivedVirtualCurrencies.Add(new TransactionVirtualCurrency
|
||||
{
|
||||
VirtualCurrencyType = VirtualCurrencyType.GRIND,
|
||||
VirtualCurrencyAmount = 50000,
|
||||
VirtualCurrencyName = "Gold Coins"
|
||||
});
|
||||
|
||||
AnalyticsService.Instance.RecordEvent(transaction);
|
||||
}
|
||||
|
||||
public static void RecordTradeEventWithOneItem()
|
||||
{
|
||||
TransactionEvent transaction = new TransactionEvent();
|
||||
transaction.TransactionName = "tradeItems";
|
||||
transaction.TransactionType = TransactionType.TRADE;
|
||||
transaction.SpentItems.Add(new TransactionItem
|
||||
{
|
||||
ItemName = "marketStall",
|
||||
ItemAmount = 1,
|
||||
ItemType = "special"
|
||||
});
|
||||
transaction.ReceivedItems.Add(new TransactionItem
|
||||
{
|
||||
ItemName = "cabbage",
|
||||
ItemAmount = 50,
|
||||
ItemType = "food"
|
||||
});
|
||||
|
||||
AnalyticsService.Instance.RecordEvent(transaction);
|
||||
}
|
||||
|
||||
public static void RecordTradeEventWithMultipleItems()
|
||||
{
|
||||
TransactionEvent transaction = new TransactionEvent();
|
||||
transaction.TransactionName = "tradeItems";
|
||||
transaction.TransactionType = TransactionType.TRADE;
|
||||
transaction.SpentItems.Add(new TransactionItem
|
||||
{
|
||||
ItemName = "flour",
|
||||
ItemAmount = 100,
|
||||
ItemType = "food",
|
||||
});
|
||||
transaction.SpentItems.Add(new TransactionItem
|
||||
{
|
||||
ItemName = "egg",
|
||||
ItemAmount = 1,
|
||||
ItemType = "food",
|
||||
});
|
||||
transaction.SpentItems.Add(new TransactionItem
|
||||
{
|
||||
ItemName = "milk",
|
||||
ItemAmount = 200,
|
||||
ItemType = "food",
|
||||
});
|
||||
transaction.SpentItems.Add(new TransactionItem
|
||||
{
|
||||
ItemName = "salt",
|
||||
ItemAmount = 1,
|
||||
ItemType = "food",
|
||||
});
|
||||
transaction.SpentItems.Add(new TransactionItem
|
||||
{
|
||||
ItemName = "heavyCream",
|
||||
ItemAmount = 150,
|
||||
ItemType = "food",
|
||||
});
|
||||
transaction.SpentItems.Add(new TransactionItem
|
||||
{
|
||||
ItemName = "sugar",
|
||||
ItemAmount = 15,
|
||||
ItemType = "food",
|
||||
});
|
||||
transaction.ReceivedItems.Add(new TransactionItem
|
||||
{
|
||||
ItemName = "pancake",
|
||||
ItemAmount = 2,
|
||||
ItemType = "food",
|
||||
});
|
||||
transaction.ReceivedItems.Add(new TransactionItem
|
||||
{
|
||||
ItemName = "whippedCream",
|
||||
ItemAmount = 165,
|
||||
ItemType = "food",
|
||||
});
|
||||
|
||||
AnalyticsService.Instance.RecordEvent(transaction);
|
||||
}
|
||||
|
||||
public static void RecordSaleEventWithOptionalParameters()
|
||||
{
|
||||
TransactionEvent transaction = new TransactionEvent();
|
||||
|
||||
transaction.PaymentCountry = "PL";
|
||||
transaction.ProductId = "productid987";
|
||||
transaction.TransactionId = "0118-999-881-999-119-725-3";
|
||||
transaction.TransactionReceipt = "transactionreceipt";
|
||||
transaction.TransactionReceiptSignature = "signature";
|
||||
transaction.TransactionServer = TransactionServer.APPLE;
|
||||
transaction.TransactorID = "transactorid-0118-999-881-999-119-725-3";
|
||||
transaction.StoreItemSkuId = "storeitemskuid";
|
||||
transaction.StoreItemId = "storeitemid";
|
||||
transaction.StoreId = "storeid";
|
||||
transaction.StoreSourceId = "storesourceid";
|
||||
transaction.TransactionName = "transactionName";
|
||||
transaction.TransactionType = TransactionType.SALE;
|
||||
|
||||
AnalyticsService.Instance.RecordEvent(transaction);
|
||||
}
|
||||
|
||||
public static void RecordAcquisitionSourceEventWithOnlyRequiredValues()
|
||||
{
|
||||
AcquisitionSourceEvent acquisitionSource = new AcquisitionSourceEvent();
|
||||
|
||||
acquisitionSource.AcquisitionChannel = "CHNL";
|
||||
acquisitionSource.AcquisitionCampaignId = "123-456-efg";
|
||||
acquisitionSource.AcquisitionCreativeId = "cre-ati-vei-d";
|
||||
acquisitionSource.AcquisitionCampaignName = "Interstitial:Halloween21";
|
||||
acquisitionSource.AcquisitionProvider = "AppsFlyer";
|
||||
|
||||
AnalyticsService.Instance.RecordEvent(acquisitionSource);
|
||||
}
|
||||
|
||||
public static void RecordAcquisitionSourceEventWithOptionalParameters()
|
||||
{
|
||||
AcquisitionSourceEvent acquisitionSource = new AcquisitionSourceEvent();
|
||||
|
||||
acquisitionSource.AcquisitionChannel = "CHNL";
|
||||
acquisitionSource.AcquisitionCampaignId = "123-456-efg";
|
||||
acquisitionSource.AcquisitionCreativeId = "cre-ati-vei-d";
|
||||
acquisitionSource.AcquisitionCampaignName = "Interstitial:Halloween21";
|
||||
acquisitionSource.AcquisitionProvider = "AppsFlyer";
|
||||
acquisitionSource.AcquisitionCampaignType = "CPI";
|
||||
acquisitionSource.AcquisitionCost = 123.4f;
|
||||
acquisitionSource.AcquisitionCostCurrency = "BGN";
|
||||
acquisitionSource.AcquisitionNetwork = "Ironsource";
|
||||
|
||||
AnalyticsService.Instance.RecordEvent(acquisitionSource);
|
||||
}
|
||||
|
||||
public static void RecordPurchaseEventWithOneItem()
|
||||
{
|
||||
TransactionEvent transaction = new TransactionEvent();
|
||||
transaction.TransactionName = "itemPurchase";
|
||||
transaction.TransactionType = TransactionType.PURCHASE;
|
||||
transaction.SpentRealCurrency = new TransactionRealCurrency
|
||||
{
|
||||
RealCurrencyAmount = AnalyticsService.Instance.ConvertCurrencyToMinorUnits("JPY", 39800),
|
||||
RealCurrencyType = "JPY"
|
||||
};
|
||||
transaction.ReceivedItems.Add(new TransactionItem
|
||||
{
|
||||
ItemName = "nerveGear",
|
||||
ItemAmount = 1,
|
||||
ItemType = "electronics",
|
||||
});
|
||||
|
||||
AnalyticsService.Instance.RecordEvent(transaction);
|
||||
}
|
||||
|
||||
public static void RecordPurchaseEventWithMultipleItems()
|
||||
{
|
||||
TransactionEvent transaction = new TransactionEvent();
|
||||
transaction.TransactionName = "itemPurchase";
|
||||
transaction.TransactionType = TransactionType.PURCHASE;
|
||||
transaction.SpentVirtualCurrencies.Add(new TransactionVirtualCurrency
|
||||
{
|
||||
VirtualCurrencyType = VirtualCurrencyType.GRIND,
|
||||
VirtualCurrencyAmount = 200500,
|
||||
VirtualCurrencyName = "Pokemon Dollar"
|
||||
});
|
||||
transaction.ReceivedItems.Add(new TransactionItem
|
||||
{
|
||||
ItemName = "magicarp",
|
||||
ItemAmount = 1,
|
||||
ItemType = "pokemon",
|
||||
});
|
||||
transaction.ReceivedItems.Add(new TransactionItem
|
||||
{
|
||||
ItemName = "rareCandy",
|
||||
ItemAmount = 20,
|
||||
ItemType = "item",
|
||||
});
|
||||
|
||||
AnalyticsService.Instance.RecordEvent(transaction);
|
||||
}
|
||||
|
||||
public static void RecordPurchaseEventWithMultipleCurrencies()
|
||||
{
|
||||
TransactionEvent transaction = new TransactionEvent();
|
||||
transaction.TransactionName = "itemPurchase";
|
||||
transaction.TransactionType = TransactionType.PURCHASE;
|
||||
transaction.ReceivedItems.Add(new TransactionItem
|
||||
{
|
||||
ItemName = "holySwordExcalibur",
|
||||
ItemAmount = 1,
|
||||
ItemType = "weapon"
|
||||
});
|
||||
transaction.SpentVirtualCurrencies.Add(new TransactionVirtualCurrency
|
||||
{
|
||||
VirtualCurrencyType = VirtualCurrencyType.GRIND,
|
||||
VirtualCurrencyAmount = 4000000,
|
||||
VirtualCurrencyName = "Cor"
|
||||
});
|
||||
transaction.SpentVirtualCurrencies.Add(new TransactionVirtualCurrency
|
||||
{
|
||||
VirtualCurrencyType = VirtualCurrencyType.PREMIUM,
|
||||
VirtualCurrencyAmount = 50000,
|
||||
VirtualCurrencyName = "Credit"
|
||||
});
|
||||
|
||||
AnalyticsService.Instance.RecordEvent(transaction);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e81a92bc94771440787058edd3f1111f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/UI Toolkit/Common.meta
Normal file
8
Assets/UI Toolkit/Common.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 22131c622b873b945a312b04e3b7e541
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1 @@
|
||||
{"EnvironmentName":"production"}
|
||||
16
ProjectSettings/unmerge/TimelineSettings.asset
Normal file
16
ProjectSettings/unmerge/TimelineSettings.asset
Normal file
@ -0,0 +1,16 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &1
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 61
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: a287be6c49135cd4f9b2b8666c39d999, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
assetDefaultFramerate: 60
|
||||
m_DefaultFrameRate: 60
|
||||
Loading…
x
Reference in New Issue
Block a user