Added wrapper methods that check if user statistics are enabled to GameAnalyticsManager

This commit is contained in:
Joonas Rikkonen
2018-07-20 12:05:13 +03:00
parent 8e03ac9284
commit 49c6b177e3
9 changed files with 50 additions and 29 deletions
@@ -1960,7 +1960,7 @@ namespace Barotrauma
characterType = "Enemy";
else if (AIController is HumanAIController)
characterType = "AICrew";
GameAnalyticsSDK.Net.GameAnalytics.AddDesignEvent("Kill:" + characterType + ":" + SpeciesName + ":" + causeOfDeath);
GameAnalyticsManager.AddDesignEvent("Kill:" + characterType + ":" + SpeciesName + ":" + causeOfDeath);
}
if (OnDeath != null) OnDeath(this, causeOfDeath);