public void StageFinalizeLog(Scene.Type CurrentScene) { if (!this.m_StageFinalizeStack.Contains(CurrentScene)) { this.m_StageFinalizeStack.Add(CurrentScene); Tapjoy.TrackEvent("GameProgress", "STAGE", CurrentScene.ToString(), "m_StageFinalizeStack", 0L); } }
public void StageFunnelsLog(Scene.Type CurrentScene) { if (PlayerPrefs.GetInt(CurrentScene.ToString(), 0) == 0) { Tapjoy.TrackEvent("GameProgress", "Funnels", CurrentScene.ToString(), null, 0L); PlayerPrefs.SetInt(CurrentScene.ToString(), 1); } }
public void QuestAccept(string strQuestUnique) { CQuest questByQuestUnique = NrTSingleton <NkQuestManager> .Instance.GetQuestByQuestUnique(strQuestUnique); if (questByQuestUnique != null) { Tapjoy.TrackEvent("Play", "Quest", questByQuestUnique.GetQuestTitle(), "QuestAccept", 0L); } }
public void QuestComplete(string strQuestUnique) { CQuest questByQuestUnique = NrTSingleton <NkQuestManager> .Instance.GetQuestByQuestUnique(strQuestUnique); if (questByQuestUnique != null) { Tapjoy.TrackEvent("Play", "Quest", questByQuestUnique.GetQuestTitle(), "QuestComplete", 0L); this.Placement("quest_end"); } }
public void PurchaseItem(long ItemMallIndex) { ITEM_MALL_ITEM item = NrTSingleton <ItemMallItemManager> .Instance.GetItem(ItemMallIndex); string textFromItem = NrTSingleton <NrTextMgr> .Instance.GetTextFromItem(item.m_strTextKey); if (item.m_nMoneyType == 1) { Tapjoy.TrackPurchase(textFromItem, "USD", (double)item.m_fPrice, null); } Tapjoy.TrackEvent("Item", "Item", "Purchase", textFromItem, ((eITEMMALL_TYPE)item.m_nGroup).ToString(), 1L, "Price", (long)item.m_fPrice, null, 0L); }
void OnGUI() { Rect position; float yPosition = startY; position = new Rect(centerX - buttonWidth - buttonPadding, yPosition, buttonWidth, buttonHeight); if (GUI.Button(position, "Basic")) { Tapjoy.TrackEvent(DEFAULT_EVENT_NAME, DEFAULT_VALUE); output = "Sent track event with name: " + DEFAULT_EVENT_NAME + ", " + DEFAULT_VALUE; } position = new Rect(centerX + buttonPadding, yPosition, buttonWidth, buttonHeight); if (GUI.Button(position, "Value")) { Tapjoy.TrackEvent(DEFAULT_CATEGORY, DEFAULT_EVENT_NAME, DEFAULT_VALUE); } yPosition += yPadding; position = new Rect(centerX - buttonWidth - buttonPadding, yPosition, buttonWidth, buttonHeight); if (GUI.Button(position, "Param1")) { Tapjoy.TrackEvent(DEFAULT_CATEGORY, DEFAULT_EVENT_NAME, DEFAULT_PARAM1); } position = new Rect(centerX + buttonPadding, yPosition, buttonWidth, buttonHeight); if (GUI.Button(position, "Param 1 and 2")) { Tapjoy.TrackEvent(DEFAULT_CATEGORY, DEFAULT_EVENT_NAME, DEFAULT_PARAM1, DEFAULT_PARAM2); } yPosition += yPadding; position = new Rect(centerX - buttonWidth - buttonPadding, yPosition, buttonWidth, buttonHeight); if (GUI.Button(position, "Param 1 with value 1")) { Tapjoy.TrackEvent(DEFAULT_CATEGORY, DEFAULT_EVENT_NAME, DEFAULT_PARAM1, null, DEFAULT_VALUE); } position = new Rect(centerX + buttonPadding, yPosition, buttonWidth, buttonHeight); if (GUI.Button(position, "Param 1 and 2 with value 1")) { Tapjoy.TrackEvent(DEFAULT_CATEGORY, DEFAULT_EVENT_NAME, DEFAULT_PARAM1, DEFAULT_PARAM2, DEFAULT_VALUE); } yPosition += yPadding; position = new Rect(centerX - buttonWidth - buttonPadding, yPosition, buttonWidth, buttonHeight); if (GUI.Button(position, "Param 1 and 2 with value 1 and 2")) { Tapjoy.TrackEvent(DEFAULT_CATEGORY, DEFAULT_EVENT_NAME, DEFAULT_PARAM1, DEFAULT_PARAM2, DEFAULT_KEY, DEFAULT_VALUE, DEFAULT_KEY2, DEFAULT_VALUE2); } position = new Rect(centerX + buttonPadding, yPosition, buttonWidth, buttonHeight); if (GUI.Button(position, "All")) { Tapjoy.TrackEvent(DEFAULT_CATEGORY, DEFAULT_EVENT_NAME, DEFAULT_PARAM1, DEFAULT_PARAM2, DEFAULT_KEY, DEFAULT_VALUE, DEFAULT_KEY2, DEFAULT_VALUE2, DEFAULT_KEY3, DEFAULT_VALUE3); } yPosition += yPadding; // Display status GUI.Label(new Rect(centerX - 200, yPosition, 400, 150), output, outputStyle); }
public void SolSell(int nDelSolCnt) { Tapjoy.TrackEvent("HERO", "SOL_SELL", (long)nDelSolCnt); }
public void SolCompose(int nDelSolCnt) { Tapjoy.TrackEvent("HERO", "SOL_COMPOSE", (long)nDelSolCnt); }
public void BabelTowerParty(int nCount) { Tapjoy.TrackEvent("Play", "BabelTowerParty", (long)nCount); }
public void BattleResult(eBATTLE_ROOMTYPE RoomType, float fBattleTime, int InjurySolCount) { string text = RoomType.ToString().Substring(17); Tapjoy.TrackEvent("Play", "Battle", text, text, "BattleTime", (long)fBattleTime, "InjurySol", (long)InjurySolCount, null, 0L); }
public void HeartsInflow(eHEARTS_INFLOW eInflow, long Value) { Tapjoy.TrackEvent("Hearts", "Hearts_Inflow", "1", eInflow.ToString(), Value); }
public void HeartsConsume(eHEARTS_CONSUME eConsume, long Value) { Tapjoy.TrackEvent("Hearts", "Hearts_Consume", "1", eConsume.ToString(), Value); }
public void ItemMallOpen() { Tapjoy.TrackEvent("Item", "ItemMallOpen", 1L); this.Placement("store_enter"); }
public void FriendHelpHero() { Tapjoy.TrackEvent("Friend", "FriendHelpHero", 1L); }
public void FriendDel() { Tapjoy.TrackEvent("Friend", "FriendDel", 1L); }
public void SolRecruit(int nSolRecruit) { Tapjoy.TrackEvent("HERO", "SOL_RECRUIT", (long)nSolRecruit); }