Third Person Cover Shooter  1.6
CoverShooter.TopDownInput Class Reference

Takes player input and transform it to commands to ThirdPersonController. More...

Inheritance diagram for CoverShooter.TopDownInput:
CoverShooter.ICharacterController

Public Member Functions

void UpdateAfterCamera ()
 Update the position under the mouse. More...
 

Public Attributes

GameObject Disabler
 Input is ignored when a disabler is active. More...
 
GameObject Marker
 Marker that is placed on the ground to mark the target the character is aiming at. More...
 
bool WalkByDefault = false
 Should the character walk by default and run, or run by default and sprint when needed. More...
 
bool SprintTowardsTarget = false
 Should the character sprint towards the target instead of relative screen up direction. More...
 
bool ManageMarkerVisibility = true
 Marker should be enabled and disabled together with this component. More...
 
bool MarkerAlwaysOnGround = true
 Will the marker be constantly displayed on the ground. More...
 
float GroundLift = 0.218f
 Height off the ground the marker is displayed at. More...
 

Protected Member Functions

virtual void UpdateMovement ()
 
virtual void UpdateFire ()
 
virtual void UpdateTarget ()
 

Detailed Description

Takes player input and transform it to commands to ThirdPersonController.

Member Function Documentation

◆ UpdateAfterCamera()

void CoverShooter.TopDownInput.UpdateAfterCamera ( )

Update the position under the mouse.

Performed after the camera has adjusted it's position.

Implements CoverShooter.ICharacterController.

◆ UpdateFire()

virtual void CoverShooter.TopDownInput.UpdateFire ( )
protectedvirtual

◆ UpdateMovement()

virtual void CoverShooter.TopDownInput.UpdateMovement ( )
protectedvirtual

◆ UpdateTarget()

virtual void CoverShooter.TopDownInput.UpdateTarget ( )
protectedvirtual

Member Data Documentation

◆ Disabler

GameObject CoverShooter.TopDownInput.Disabler

Input is ignored when a disabler is active.

◆ GroundLift

float CoverShooter.TopDownInput.GroundLift = 0.218f

Height off the ground the marker is displayed at.

◆ ManageMarkerVisibility

bool CoverShooter.TopDownInput.ManageMarkerVisibility = true

Marker should be enabled and disabled together with this component.

◆ Marker

GameObject CoverShooter.TopDownInput.Marker

Marker that is placed on the ground to mark the target the character is aiming at.

◆ MarkerAlwaysOnGround

bool CoverShooter.TopDownInput.MarkerAlwaysOnGround = true

Will the marker be constantly displayed on the ground.

◆ SprintTowardsTarget

bool CoverShooter.TopDownInput.SprintTowardsTarget = false

Should the character sprint towards the target instead of relative screen up direction.

◆ WalkByDefault

bool CoverShooter.TopDownInput.WalkByDefault = false

Should the character walk by default and run, or run by default and sprint when needed.


The documentation for this class was generated from the following file: