예제 #1
0
 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);
     }
 }
예제 #2
0
 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);
     }
 }
예제 #3
0
    public void QuestAccept(string strQuestUnique)
    {
        CQuest questByQuestUnique = NrTSingleton <NkQuestManager> .Instance.GetQuestByQuestUnique(strQuestUnique);

        if (questByQuestUnique != null)
        {
            Tapjoy.TrackEvent("Play", "Quest", questByQuestUnique.GetQuestTitle(), "QuestAccept", 0L);
        }
    }
예제 #4
0
    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");
        }
    }
예제 #5
0
    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);
    }
예제 #6
0
    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);
    }
예제 #7
0
 public void SolSell(int nDelSolCnt)
 {
     Tapjoy.TrackEvent("HERO", "SOL_SELL", (long)nDelSolCnt);
 }
예제 #8
0
 public void SolCompose(int nDelSolCnt)
 {
     Tapjoy.TrackEvent("HERO", "SOL_COMPOSE", (long)nDelSolCnt);
 }
예제 #9
0
 public void BabelTowerParty(int nCount)
 {
     Tapjoy.TrackEvent("Play", "BabelTowerParty", (long)nCount);
 }
예제 #10
0
    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);
    }
예제 #11
0
 public void HeartsInflow(eHEARTS_INFLOW eInflow, long Value)
 {
     Tapjoy.TrackEvent("Hearts", "Hearts_Inflow", "1", eInflow.ToString(), Value);
 }
예제 #12
0
 public void HeartsConsume(eHEARTS_CONSUME eConsume, long Value)
 {
     Tapjoy.TrackEvent("Hearts", "Hearts_Consume", "1", eConsume.ToString(), Value);
 }
예제 #13
0
 public void ItemMallOpen()
 {
     Tapjoy.TrackEvent("Item", "ItemMallOpen", 1L);
     this.Placement("store_enter");
 }
예제 #14
0
 public void FriendHelpHero()
 {
     Tapjoy.TrackEvent("Friend", "FriendHelpHero", 1L);
 }
예제 #15
0
 public void FriendDel()
 {
     Tapjoy.TrackEvent("Friend", "FriendDel", 1L);
 }
예제 #16
0
 public void SolRecruit(int nSolRecruit)
 {
     Tapjoy.TrackEvent("HERO", "SOL_RECRUIT", (long)nSolRecruit);
 }