private static string GetGachaSummonTypeString(GachaWindow.GachaTabCategory inGachaType) { int num = (int)inGachaType; if (num > -1 && num < AnalyticsManager.GachaSummonType.Length) { return(AnalyticsManager.GachaSummonType[(int)inGachaType]); } return((string)null); }
public static void SetSummonTracking(GachaButton.GachaCostType inCostType, GachaWindow.GachaTabCategory inTabCategory, string inGateID, bool inIsFree, int inSummonCost, int inNumberOfThingsSummoned, int inCurrentSummonStepIndex) { string str; if (inIsFree) { switch (inCostType) { case GachaButton.GachaCostType.COIN: str = "Rare (Free)"; break; case GachaButton.GachaCostType.GOLD: str = "Normal (Free)"; break; default: str = string.Empty; break; } } else { switch (inCostType) { case GachaButton.GachaCostType.COIN: str = "Rare (Paid)"; break; case GachaButton.GachaCostType.COIN_P: str = "Rare (Discount)"; break; case GachaButton.GachaCostType.GOLD: str = "Normal (Zeni)"; break; default: str = string.Empty; break; } } AnalyticsManager.summonData = new Dictionary <string, object>() { { "main_type", (object)AnalyticsManager.GetGachaSummonTypeString(inTabCategory) }, { "sub_type", (object)str }, { "currency_used", (object)AnalyticsManager.GetGachaSummonCostTypeString(inCostType) }, { "currency_amount", (object)inSummonCost }, { "gate_id", (object)inGateID }, { "step_id", (object)inCurrentSummonStepIndex }, { "step_reward_id", (object)string.Empty }, { "step_reward_amount", (object)inNumberOfThingsSummoned } }; }