private void Rate(int count) { if (_rated) { return; } _rated = true; var positive = count >= StarsForPositive; var posString = positive ? "rating_positive" : "rating_negative"; Tracking.Instance.Track("rating_give", "stars", count) .Track($"rating_{count}_stars") .Track(posString) .SetUserProperty("rating", count) .SetUserProperty(posString, true); for (var i = 0; i < Stars.Length; i++) { Stars[i].Fill.enabled = i < count; } if (positive) { OnPositive?.Invoke(count); } else { OnNegative?.Invoke(count); } }
private void SendToRating() { OnPositive?.Invoke(0); }