MovingDungeonObject Methods

MyDungeon

MovingDungeonObject Methods

The MovingDungeonObject type exposes the following members.

Methods
  NameDescription
Protected methodCheckHit
Checks if entity is blocked by an object on the blocking layer in a desired direction
Public methodLoseHealth
Subtracts health from the entity
Protected methodMove
Checks if the entity can move in the provided direction
Public methodRecoverHealth
Adds health to the entity
Protected methodSmoothMovement
Moves entity from their current position to their desired position with a smooth animation
Protected methodStart
Initializes the 2DPhysics components, the entity's position, and animation movement multiplier
Protected methodWaitForTurnEnd
Used to ensure a turn does not end early
Top
Extension Methods
  NameDescription
Public Extension MethodInvoke
Invoke using a delegate
(Defined by MonoBehaviourExtensions.)
Top
See Also