You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -81,22 +96,13 @@ public Axis(InputAction action)
81
96
82
97
/// <summary>
83
98
/// Sets <see cref="Value"/>.
84
-
/// <para>The <see cref="Axis"/> logs the <see cref="Time.frameCount"/> and <see cref="Time.unscaledTime"/> whenever <see cref="Value"/> is set.</para>
85
-
/// </summary>
86
-
/// <param name="value">The value to set.</param>
87
-
publicvoidSetValue(floatvalue)
88
-
{
89
-
SetValue(value,true);
90
-
}
91
-
92
-
/// <summary>
93
-
/// Sets <see cref="Axis"/> value.
94
-
/// <para>The <see cref="Axis"/> logs the <see cref="Time.frameCount"/> and <see cref="Time.unscaledTime"/> whenever <see cref="Value"/> is set.</para>
95
-
/// <para>It is strongly recommended not to set the <paramref name="invoke"/> parameter to false, unless you know what you are doing.
96
-
/// Other classes such as <see cref="TwinAxes"/> use the <see cref="OnValueChanged"/> event to monitor their instances of <see cref="Axis"/> for value changes.</para>
99
+
/// <para>The <see cref="Axis"/> logs the <see cref="Time.frameCount"/> and <see cref="Time.unscaledTime"/>
100
+
/// whenever <see cref="Value"/> is set.</para>
97
101
/// </summary>
98
102
/// <param name="value">The value to set.</param>
99
-
/// <param name="invoke">Invokes <see cref="OnValueChanged"/> if set to true.</param>
103
+
/// <param name="invoke">Set to false to prevent the class' events from being invoked by this method.
104
+
/// <para><see cref="TwinAxes"/> relies on <see cref="OnValueChanged"/> to monitor its instances of <see cref="Axis"/>
105
+
/// for value changes, so take care.</para></param>
/// Returns for how many frames <see cref="Value"/> has been positive, if it currently is. Returns -1 otherwise.
149
+
/// Calculates the amount of update frames <see cref="Value"/> has been positive for.
162
150
/// </summary>
163
151
/// <returns>
164
-
/// How many frames <see cref="Value"/> has been positive, if it currently is. If <see cref="Value"/> is currently not positive, this method will return -1.
165
-
/// <para>This method will also always return -1 if <see cref="SetValue(float)"/> or <see cref="SetNeutral"/> have never been called.</para>
152
+
/// How many update frames <see cref="Value"/> has been positive, if it currently is.
153
+
/// <para>-1 will be returned if <see cref="Value"/> is currently not positive, or if <see cref="SetValue"/> has never been called.</para>
/// Returns for how many seconds <see cref="Value"/> has been positive, if it currently is. Returns -1f otherwise.
164
+
/// Calculates the amount of seconds <see cref="Value"/> has been positive for.
177
165
/// </summary>
178
166
/// <returns>
179
-
/// How many seconds <see cref="Value"/> has been positive, if it currently is. If <see cref="Value"/> is currently not positive, this method will return -1f.
180
-
/// <para>This method will also always return -1f if <see cref="SetValue(float)"/> or <see cref="SetNeutral"/> have never been called.</para>
167
+
/// How many seconds <see cref="Value"/> has been positive, if it currently is.
168
+
/// <para>-1 will be returned if <see cref="Value"/> is currently not positive, or if <see cref="SetValue"/> has never been called.</para>
/// Returns for how many frames <see cref="Value"/> has been neutral (0f), if it currently is. Returns -1 otherwise.
179
+
/// Calculates the amount of update frames <see cref="Value"/> has been neutral (0f) for.
192
180
/// </summary>
193
181
/// <returns>
194
-
/// How many frames <see cref="Value"/> has been neutral, if it currently is. If <see cref="Value"/> is currently not neutral, this method will return -1.
195
-
/// <para>This method will also always return -1 if <see cref="SetValue(float)"/> or <see cref="SetNeutral"/> have never been called.</para>
182
+
/// How many update frames <see cref="Value"/> has been neutral, if it currently is.
183
+
/// <para>-1 will be returned if <see cref="Value"/> is currently not neutral, or if <see cref="SetValue"/> has never been called.</para>
/// Returns for how many seconds <see cref="Value"/> has been neutral (0f), if it currently is. Returns -1f otherwise.
194
+
/// Calculates the amount of seconds <see cref="Value"/> has been neutral (0f) for.
207
195
/// </summary>
208
196
/// <returns>
209
-
/// How many seconds <see cref="Value"/> has been neutral, if it currently is. If <see cref="Value"/> is currently not neutral, this method will return -1f.
210
-
/// <para>This method will also always return -1f if <see cref="SetValue(float)"/> or <see cref="SetNeutral"/> have never been called.</para>
197
+
/// How many seconds <see cref="Value"/> has been neutral, if it currently is.
198
+
/// <para>-1 will be returned if <see cref="Value"/> is currently not neutral, or if <see cref="SetValue"/> has never been called.</para>
/// Returns for how many frames <see cref="Value"/> has been negative, if it currently is. Returns -1 otherwise.
209
+
/// Calculates the amount of update frames <see cref="Value"/> has been negative for.
222
210
/// </summary>
223
211
/// <returns>
224
-
/// How many frames <see cref="Value"/> has been negative, if it currently is. If <see cref="Value"/> is currently not negative, this method will return -1.
225
-
/// <para>This method will also always return -1 if <see cref="SetValue(float)"/> or <see cref="SetNeutral"/> have never been called.</para>
212
+
/// How many update frames <see cref="Value"/> has been negative, if it currently is.
213
+
/// <para>-1 will be returned if <see cref="Value"/> is currently not negative, or if <see cref="SetValue"/> has never been called.</para>
/// Returns for how many seconds <see cref="Value"/> has been negative, if it currently is. Returns -1f otherwise.
224
+
/// Calculates the amount of seconds <see cref="Value"/> has been negative for.
237
225
/// </summary>
238
226
/// <returns>
239
-
/// How many seconds <see cref="Value"/> has been negative, if it currently is. If <see cref="Value"/> is currently not negative, this method will return -1f.
240
-
/// <para>This method will also always return -1f if <see cref="SetValue(float)"/> or <see cref="SetNeutral"/> have never been called.</para>
227
+
/// How many seconds <see cref="Value"/> has been negative, if it currently is.
228
+
/// <para>-1 will be returned if <see cref="Value"/> is currently not negative, or if <see cref="SetValue"/> has never been called.</para>
0 commit comments