Skip to content

Commit ad68139

Browse files
committed
Simplified reset code
1 parent 4c4e8dd commit ad68139

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Packages/com.unity.inputsystem/InputSystem/Editor/Analytics/InputExitPlayModeAnalytic.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ internal static void OnPlayModeStateChange(PlayModeStateChange change)
7474
if (change == PlayModeStateChange.ExitingEditMode)
7575
{
7676
// Reset all counters when exiting edit mode
77-
for (var i = 0; i < m_Counters.Length; ++i)
78-
m_Counters[i] = 0;
77+
Array.Clear(m_Counters, 0, m_Counters.Length);
7978

8079
// Make sure not suppressed
8180
suppress = false;
@@ -123,8 +122,7 @@ public Data(bool usesCodeAuthoring)
123122
}
124123

125124
/// <summary>
126-
/// Specifies whether code-authoring (Input Action setup via extensions) was used at least once
127-
/// during play-mode.
125+
/// Specifies whether code-authoring (Input Action setup via extensions) was used at least once during play-mode.
128126
/// </summary>
129127
public bool uses_code_authoring;
130128
}

0 commit comments

Comments
 (0)