Skip to content

Commit

Permalink
feat: Added reset method to LookHandler.
Browse files Browse the repository at this point in the history
The reset method usage depends on how you handle the camera in your game, but usually it will be used to reset the camera to the entity's backside (in a 3D game), or maybe to the direction of what they're targeting.
  • Loading branch information
christides11 committed Aug 26, 2020
1 parent 89c135d commit 317235a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Assets/CAF/Camera/LookHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,10 @@ public interface LookHandler
/// </summary>
/// <returns>The transform.</returns>
Transform LookTransform();

/// <summary>
/// Resets the lookhandler to a wanted set position.
/// </summary>
void Reset();
}
}

0 comments on commit 317235a

Please sign in to comment.