public void LogAchievment(IAchievment achievment) { #if UNITY_EDITOR Services.GetService <IConsoleService>().AddOutput( $"Log achievment to fb {achievment.Id}:{achievment.Name}", ConsoleTextColor.cyan, true); #elif UNITY_ANDROID || UNITY_IOS FB.LogAppEvent(AppEventName.UnlockedAchievement, 1, new Dictionary <string, object> { [AppEventParameterName.Description] = achievment.Name }); #endif }
public static void OnAchievmentCompleted(IAchievment achievment) => AchievmentCompleted?.Invoke(achievment);
private void OnAchievmentCompleted(IAchievment achievment) { LogAchievment(achievment); }