Class RoarEmitter
Used by the Enemy to create a Roar Effect
Namespace: WeaverCore.Assets.Components
Assembly: WeaverCore.dll
Syntax
public class RoarEmitter : MonoBehaviour
Fields
| Edit this page View SourcestopAfterTime
Declaration
[Tooltip("How long should the roar effect last by default")]
public float stopAfterTime
Field Value
Type | Description |
---|---|
float |
Methods
| Edit this page View SourceRoarLockPlayer()
Causes the player to lock in place. Used primarily to lock the player during a roar
Declaration
public void RoarLockPlayer()
RoarUnlockPlayer()
Stops the player from being locked in place
Declaration
public void RoarUnlockPlayer()
Spawn(Vector3)
Spawns a roar effect
Declaration
public static RoarEmitter Spawn(Vector3 position)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | The position to spawn the effect |
Returns
Type | Description |
---|---|
RoarEmitter | Returns an instance to the roar effect |
StopRoaring()
Halts the roaring effect
Declaration
public void StopRoaring()
StopRoaringAfter(float)
Halts the roaring effect after a set amount of time
Declaration
public void StopRoaringAfter(float time)
Parameters
Type | Name | Description |
---|---|---|
float | time | The time to wait before halting |