static public void reportMonsterReachedGoal(MonsterBase monster) { #if UNITY_ANALYTICS if (!isTrackingEvents) { return; } bool bIsCommon = monster.GetType().IsSubclassOf(typeof(SpecialMonster)); AnalyticsEvent.Custom(monsterReachedGoal, new Dictionary <string, object> { { "name", monster.gameObject.name }, { "common", bIsCommon } }); #endif }
static public void reportMonsterDeath(MonsterBase monster, string killedBy) { #if UNITY_ANALYTICS if (!isTrackingEvents) { return; } bool bIsCommon = monster.GetType().IsSubclassOf(typeof(SpecialMonster)); AnalyticsEvent.Custom(monsterDeath, new Dictionary <string, object> { { "name", monster.gameObject.name }, { "common", bIsCommon }, { "killedBy", killedBy }, { "tilesTravelled", monster.TilesTravelled } }); #endif }