public static void NewResourceEvent(GAResourceFlowType flowType, string currency, float amount, string itemType, string itemId)
 {
     if (!GameAnalyticsSDK.GameAnalytics._hasInitializeBeenCalled)
     {
         return;
     }
     GA_Resource.NewEvent(flowType, currency, amount, itemType, itemId, null);
 }
示例#2
0
 /// <summary>
 /// Analyze your in-game economy (virtual currencies). You will be able to see the flow (sink/source) for each virtual currency.
 /// </summary>
 /// <param name="flowType">Add or substract resource.</param>
 /// <param name="currency">One of the available currencies set in Settings (Setup tab).</param>
 /// <param name="amount">Amount sourced or sinked.</param>
 /// <param name="itemType">One of the available currencies set in Settings (Setup tab).</param>
 /// <param name="itemId">Item id (string max length=16).</param>
 public static void NewResourceEvent(GAResourceFlowType flowType, string currency, float amount, string itemType, string itemId)
 {
     if (!GameAnalytics._hasInitializeBeenCalled)
     {
         Debug.LogWarning("GameAnalytics: REMEMBER THE SDK NEEDS TO BE MANUALLY INITIALIZED NOW");
     }
     GA_Resource.NewEvent(flowType, currency, amount, itemType, itemId);
 }
示例#3
0
 public static void NewResourceEvent(GAResourceFlowType flowType, string currency, float amount, string itemType, string itemId)
 {
     if (!_hasInitializeBeenCalled)
     {
         UnityEngine.Debug.LogError("GameAnalytics: REMEMBER THE SDK NEEDS TO BE MANUALLY INITIALIZED NOW");
     }
     else
     {
         GA_Resource.NewEvent(flowType, currency, amount, itemType, itemId, null);
     }
 }
示例#4
0
 /// <summary>
 /// Analyze your in-game economy (virtual currencies). You will be able to see the flow (sink/source) for each virtual currency.
 /// </summary>
 /// <param name="flowType">Add or substract resource.</param>
 /// <param name="currency">One of the available currencies set in Settings (Setup tab).</param>
 /// <param name="amount">Amount sourced or sinked.</param>
 /// <param name="itemType">One of the available currencies set in Settings (Setup tab).</param>
 /// <param name="itemId">Item id (string max length=16).</param>
 public static void NewResourceEvent(GAResourceFlowType flowType, string currency, float amount, string itemType, string itemId)
 {
     GA_Resource.NewEvent(flowType, currency, amount, itemType, itemId);
 }