Shooter Template  1.2.3
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
Invector.vCharacterController.vLockOnBehaviour Class Reference
Inheritance diagram for Invector.vCharacterController.vLockOnBehaviour:
Invector.vMonoBehaviour Invector.vCharacterController.vLockOn Invector.vShooter.vLockOnShooter

Public Member Functions

virtual void ChangeTarget (int value)
 change the current target to next target of possibles target if exist more than 1 target in list More...
 
virtual bool isCharacterAlive ()
 Check if Current target(vCharacter) is Alive More...
 
virtual bool isCharacterAlive (Transform other)
 Check if target is a vCharacter Alive More...
 
virtual void ResetLockOn ()
 Reset Lock on (removing currentTarget) More...
 

Public Attributes

string [] tagsToFind = new string[] { "Enemy" }
 
LayerMask layerOfObstacles = 1 << 0
 
float screenMarginX = 0.8f
 
float screenMarginY = 0.1f
 
float range = 10f
 
bool showDebug
 
float timeToChangeTarget = 0.25f
 

Protected Member Functions

virtual void UpdateLockOn (bool value)
 
virtual IEnumerator ChangeTargetRoutine (int value)
 
virtual void SetTarget ()
 
void OnGUI ()
 Draw GUI of Rect More...
 
void Init ()
 Init the properts More...
 
void OnDrawGizmos ()
 Draw the range gizmo More...
 
List< Transform > GetPossibleTargets ()
 get all possibles targets More...
 
void SortTargets (ref List< Transform > list)
 Sort the targets of possible targets by order of priority More...
 
Vector3 [] BoundPoints (Collider collider)
 return 8 bound points More...
 

Protected Attributes

bool changingTarget
 

Properties

virtual Transform currentTarget [get]
 Get current target More...
 
virtual List< Transform > allTargets [get]
 Get all target possibles More...
 

Member Function Documentation

◆ BoundPoints()

Vector3 [] Invector.vCharacterController.vLockOnBehaviour.BoundPoints ( Collider  collider)
protected

return 8 bound points

Parameters
collider
Returns

◆ ChangeTarget()

virtual void Invector.vCharacterController.vLockOnBehaviour.ChangeTarget ( int  value)
virtual

change the current target to next target of possibles target if exist more than 1 target in list

◆ ChangeTargetRoutine()

virtual IEnumerator Invector.vCharacterController.vLockOnBehaviour.ChangeTargetRoutine ( int  value)
protectedvirtual

◆ GetPossibleTargets()

List<Transform> Invector.vCharacterController.vLockOnBehaviour.GetPossibleTargets ( )
protected

get all possibles targets

Returns

◆ Init()

void Invector.vCharacterController.vLockOnBehaviour.Init ( )
protected

Init the properts

◆ isCharacterAlive() [1/2]

virtual bool Invector.vCharacterController.vLockOnBehaviour.isCharacterAlive ( )
virtual

Check if Current target(vCharacter) is Alive

Returns

◆ isCharacterAlive() [2/2]

virtual bool Invector.vCharacterController.vLockOnBehaviour.isCharacterAlive ( Transform  other)
virtual

Check if target is a vCharacter Alive

Parameters
othertarget
Returns

◆ OnDrawGizmos()

void Invector.vCharacterController.vLockOnBehaviour.OnDrawGizmos ( )
protected

Draw the range gizmo

◆ OnGUI()

void Invector.vCharacterController.vLockOnBehaviour.OnGUI ( )
protected

Draw GUI of Rect

◆ ResetLockOn()

virtual void Invector.vCharacterController.vLockOnBehaviour.ResetLockOn ( )
virtual

Reset Lock on (removing currentTarget)

◆ SetTarget()

virtual void Invector.vCharacterController.vLockOnBehaviour.SetTarget ( )
protectedvirtual

◆ SortTargets()

void Invector.vCharacterController.vLockOnBehaviour.SortTargets ( ref List< Transform >  list)
protected

Sort the targets of possible targets by order of priority

Parameters
list

◆ UpdateLockOn()

virtual void Invector.vCharacterController.vLockOnBehaviour.UpdateLockOn ( bool  value)
protectedvirtual

Member Data Documentation

◆ changingTarget

bool Invector.vCharacterController.vLockOnBehaviour.changingTarget
protected

◆ layerOfObstacles

LayerMask Invector.vCharacterController.vLockOnBehaviour.layerOfObstacles = 1 << 0

◆ range

float Invector.vCharacterController.vLockOnBehaviour.range = 10f

◆ screenMarginX

float Invector.vCharacterController.vLockOnBehaviour.screenMarginX = 0.8f

◆ screenMarginY

float Invector.vCharacterController.vLockOnBehaviour.screenMarginY = 0.1f

◆ showDebug

bool Invector.vCharacterController.vLockOnBehaviour.showDebug

◆ tagsToFind

string [] Invector.vCharacterController.vLockOnBehaviour.tagsToFind = new string[] { "Enemy" }

◆ timeToChangeTarget

float Invector.vCharacterController.vLockOnBehaviour.timeToChangeTarget = 0.25f

Property Documentation

◆ allTargets

virtual List<Transform> Invector.vCharacterController.vLockOnBehaviour.allTargets
get

Get all target possibles

◆ currentTarget

virtual Transform Invector.vCharacterController.vLockOnBehaviour.currentTarget
get

Get current target

Returns

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