Corgi Engine
v9.0
|
Add this component to a CorgiController2D and it will try to kill your player on sight. More...
Public Attributes | |
float | ShootDistance = 10f |
The maximum distance at which the AI can shoot at the player. More... | |
Vector2 | RaycastOriginOffset = new Vector2(0,0) |
The offset to apply to the shoot origin point (by default the position of the object) More... | |
LayerMask | TargetLayerMask = LayerManager.PlayerLayerMask |
The layers the agent will try to shoot at. More... | |
Protected Member Functions | |
virtual void | Start () |
on start we get our components More... | |
virtual void | Update () |
Every frame, check for the player and try and kill it More... | |
Protected Attributes | |
Vector2 | _direction |
Character | _character |
CharacterHandleWeapon | _characterShoot |
Vector2 | _raycastOrigin |
RaycastHit2D | _raycast |
Add this component to a CorgiController2D and it will try to kill your player on sight.
|
protectedvirtual |
on start we get our components
|
protectedvirtual |
Every frame, check for the player and try and kill it
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Vector2 MoreMountains.CorgiEngine.AIShootOnSight.RaycastOriginOffset = new Vector2(0,0) |
The offset to apply to the shoot origin point (by default the position of the object)
float MoreMountains.CorgiEngine.AIShootOnSight.ShootDistance = 10f |
The maximum distance at which the AI can shoot at the player.
LayerMask MoreMountains.CorgiEngine.AIShootOnSight.TargetLayerMask = LayerManager.PlayerLayerMask |
The layers the agent will try to shoot at.