public void onScoreRecordChanged(string message) { SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onScoreRecordChanged with message: " + message); Score score = SoomlaLevelUp.GetScore(message); LevelUpEvents.OnScoreRecordChanged(score); }
/// <summary> /// Checks if this <c>Gate</c> meets its criteria for opening, by checking if this <c>Gate</c>'s /// associated <c>Score</c> has reached the desired record. /// </summary> /// <returns>If the <c>Gate</c> can be opened returns <c>true</c>; otherwise <c>false</c>.</returns> protected override bool canOpenInner() { Score score = SoomlaLevelUp.GetScore(AssociatedScoreId); if (score == null) { SoomlaUtils.LogError(TAG, "(canOpenInner) couldn't find score with scoreId: " + AssociatedScoreId); return(false); } return(score.HasRecordReached(DesiredRecord)); }