TopDown Engine v4.5
Loading...
Searching...
No Matches
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.

Public Attributes

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

Protected Member Functions

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

Protected Attributes

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

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:
  • H:/Code/MoreMountains/topdownengine/Assets/TopDownEngine/Common/Scripts/Characters/AI/Automation/PathedProjectile.cs