コード例 #1
0
ファイル: GameTracker.cs プロジェクト: Gametic/UnityDemo
 void OnSpendCredit(int credit, int creditsToSpend)
 {
     Gametic.CustomEvent("SpendCredit", new Dictionary <string, object> {
         { "credits", credit },
         { "creditsToSpend", creditsToSpend }
     });
 }
コード例 #2
0
ファイル: GameTracker.cs プロジェクト: Gametic/UnityDemo
 void HandleOnLevelCompleted(int levelNumber)
 {
     Gametic.CustomEvent("GameLevelComplete", new Dictionary <string, object> {
         { "level", Monitor.lastPlayedLevel.ToString() },
         { "credits", PlayerPrefs.GetInt(GameMonitor.CREDITS) }
     });
 }
コード例 #3
0
ファイル: GameTracker.cs プロジェクト: Gametic/UnityDemo
 void OnAddCredit(int credit, int creditsToAdd)
 {
     Gametic.Purchase("Cafebazaar", creditsToAdd);
     Gametic.CustomEvent("AddCredit", new Dictionary <string, object> {
         { "credits", credit },
         { "creditsToAdd", creditsToAdd }
     });
 }
コード例 #4
0
ファイル: GameTracker.cs プロジェクト: Gametic/UnityDemo
 void Awake()
 {
     Gametic.CustomEvent("GameStart", new Dictionary <string, object> {
         { "credits", PlayerPrefs.GetInt(GameMonitor.CREDITS) }
     });
 }