TopDown Engine  v4.2
MoreMountains.TopDownEngine.PathedProjectile Class Reference

This class handles the movement of a pathed projectile More...

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

Public Member Functions

virtual void Initialize (Transform destination, float speed)
 Initializes the specified destination and speed. More...
 

Public Attributes

GameObject DestroyEffect
 The effect to instantiate when the object gets destroyed. More...
 

Protected Member Functions

virtual void Update ()
 Every frame, me move the projectile's position to its destination More...
 

Protected Attributes

Transform _destination
 the destination of the projectile More...
 
float _speed
 the movement speed More...
 

Detailed Description

This class handles the movement of a pathed projectile

Member Function Documentation

◆ Initialize()

virtual void MoreMountains.TopDownEngine.PathedProjectile.Initialize ( Transform  destination,
float  speed 
)
virtual

Initializes the specified destination and speed.

Parameters
destinationDestination.
speedSpeed.

◆ Update()

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

Every frame, me move the projectile's position to its destination

Member Data Documentation

◆ _destination

Transform MoreMountains.TopDownEngine.PathedProjectile._destination
protected

the destination of the projectile

◆ _speed

float MoreMountains.TopDownEngine.PathedProjectile._speed
protected

the movement speed

◆ DestroyEffect

GameObject MoreMountains.TopDownEngine.PathedProjectile.DestroyEffect

The effect to instantiate when the object gets destroyed.


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