TopDown Engine v4.5
Loading...
Searching...
No Matches
MoreMountains.TopDownEngine.PathedProjectileSpawner Class Reference

Spawns pathed projectiles. More...

Inheritance diagram for MoreMountains.TopDownEngine.PathedProjectileSpawner:
MoreMountains.TopDownEngine.TopDownMonoBehaviour MoreMountains.Tools.MMMonoBehaviour

Public Member Functions

virtual void OnDrawGizmos ()
 Debug mode.

Public Attributes

Transform Destination
 the pathed projectile's destination
PathedProjectile Projectile
 the projectiles to spawn
GameObject SpawnEffect
 the effect to instantiate at each spawn
float Speed
 the speed of the projectiles
float FireRate
 the frequency of the spawns

Protected Member Functions

virtual void Start ()
 Initialization.
virtual void Update ()
 Every frame, we check if we need to instantiate a new projectile.

Protected Attributes

float _nextShotInSeconds

Detailed Description

Spawns pathed projectiles.

Member Function Documentation

◆ OnDrawGizmos()

virtual void MoreMountains.TopDownEngine.PathedProjectileSpawner.OnDrawGizmos ( )
virtual

Debug mode.

◆ Start()

virtual void MoreMountains.TopDownEngine.PathedProjectileSpawner.Start ( )
protectedvirtual

Initialization.

◆ Update()

virtual void MoreMountains.TopDownEngine.PathedProjectileSpawner.Update ( )
protectedvirtual

Every frame, we check if we need to instantiate a new projectile.

Member Data Documentation

◆ _nextShotInSeconds

float MoreMountains.TopDownEngine.PathedProjectileSpawner._nextShotInSeconds
protected

◆ Destination

Transform MoreMountains.TopDownEngine.PathedProjectileSpawner.Destination

the pathed projectile's destination

◆ FireRate

float MoreMountains.TopDownEngine.PathedProjectileSpawner.FireRate

the frequency of the spawns

◆ Projectile

PathedProjectile MoreMountains.TopDownEngine.PathedProjectileSpawner.Projectile

the projectiles to spawn

◆ SpawnEffect

GameObject MoreMountains.TopDownEngine.PathedProjectileSpawner.SpawnEffect

the effect to instantiate at each spawn

◆ Speed

float MoreMountains.TopDownEngine.PathedProjectileSpawner.Speed

the speed of the projectiles


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