Skip to content

Commit

Permalink
Rename set_value to setValue
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Harris committed Sep 27, 2022
1 parent 33c2f94 commit 3487180
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Documentation/Mobile-Studio.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ To create a counter, e.g.:

Counter values are set easily:

counter.set_value(42.2f);
counter.setValue(42.2f);

### Custom Activity Maps

Expand Down
2 changes: 1 addition & 1 deletion Runtime/MobileStudio.cs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public Counter(string title, string name, CounterType type, string unit = null)
*/
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[Conditional("UNITY_ANDROID")]
public void set_value(float value)
public void setValue(float value)
{
#if UNITY_ANDROID && !UNITY_EDITOR
if (state == AnnotationState.Active)
Expand Down
2 changes: 1 addition & 1 deletion Runtime/UnityStatsProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ void Update()
{
var value = counters[i].unityCounter.CurrentValueAsDouble;
float valueToReport = counters[i].convertToMiB ? (float)(value * toMiB) : (float)value;
counters[i].mobileStudioCounter.set_value(valueToReport);
counters[i].mobileStudioCounter.setValue(valueToReport);
}
}
}
Expand Down

0 comments on commit 3487180

Please sign in to comment.