Skip to content

Commit daa9dc4

Browse files
update comment
Co-authored-by: Chris Massie <[email protected]>
1 parent 6abb34e commit daa9dc4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Packages/com.unity.inputsystem/InputSystem/Actions/InputAction.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1580,9 +1580,11 @@ public unsafe bool WasCompletedThisFrame()
15801580
/// </remarks>
15811581
/// <example>
15821582
/// <code>
1583-
/// var warp = playerInput.actions["Warp"];
1584-
/// if (warp.WasPerformed())
1585-
/// InitiateWarp();
1583+
/// var teleport = playerInput.actions["Teleport"];
1584+
/// if (teleport.WasPerformedThisDynamicUpdate())
1585+
/// InitiateTeleport();
1586+
/// else if (teleport.WasCompletedThisDynamicUpdate())
1587+
/// StopTeleport();
15861588
/// </code>
15871589
/// </example>
15881590
/// <seealso cref="WasPerformedThisFrame"/>

0 commit comments

Comments
 (0)