Corgi Engine  v8.8
MoreMountains.CorgiEngine.WeaponHandler Class Reference

A simple component you can use to control a weapon and have it start and stop on demand, without having a character to handle it You can see it in action in the KoalaHealth demo scene, it's powering that demo's cannons More...

Inheritance diagram for MoreMountains.CorgiEngine.WeaponHandler:
MoreMountains.CorgiEngine.CorgiMonoBehaviour

Public Member Functions

virtual void StartShooting ()
 Makes the associated weapon start shooting More...
 
virtual void StopShooting ()
 Makes the associated weapon stop shooting More...
 

Public Attributes

Weapon TargetWeapon
 the weapon you want this component to pilot More...
 
bool StartShootingOnStart = false
 if this is true, the WeaponHandler will begin shooting automatically on start More...
 
float InitialDelayOnStart = 1f
 the delay, in seconds, to wait before shooting on start More...
 
bool StartShootingButton
 
bool StopShootingButton
 

Protected Member Functions

virtual void Start ()
 On Start, starts shooting if needed More...
 
virtual IEnumerator StartShootingOnStartCo ()
 

Detailed Description

A simple component you can use to control a weapon and have it start and stop on demand, without having a character to handle it You can see it in action in the KoalaHealth demo scene, it's powering that demo's cannons

Member Function Documentation

◆ Start()

virtual void MoreMountains.CorgiEngine.WeaponHandler.Start ( )
protectedvirtual

On Start, starts shooting if needed

◆ StartShooting()

virtual void MoreMountains.CorgiEngine.WeaponHandler.StartShooting ( )
virtual

Makes the associated weapon start shooting

◆ StartShootingOnStartCo()

virtual IEnumerator MoreMountains.CorgiEngine.WeaponHandler.StartShootingOnStartCo ( )
protectedvirtual

◆ StopShooting()

virtual void MoreMountains.CorgiEngine.WeaponHandler.StopShooting ( )
virtual

Makes the associated weapon stop shooting

Member Data Documentation

◆ InitialDelayOnStart

float MoreMountains.CorgiEngine.WeaponHandler.InitialDelayOnStart = 1f

the delay, in seconds, to wait before shooting on start

◆ StartShootingButton

bool MoreMountains.CorgiEngine.WeaponHandler.StartShootingButton

◆ StartShootingOnStart

bool MoreMountains.CorgiEngine.WeaponHandler.StartShootingOnStart = false

if this is true, the WeaponHandler will begin shooting automatically on start

◆ StopShootingButton

bool MoreMountains.CorgiEngine.WeaponHandler.StopShootingButton

◆ TargetWeapon

Weapon MoreMountains.CorgiEngine.WeaponHandler.TargetWeapon

the weapon you want this component to pilot


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