Class HitEffectsGhost
Handles hit effects for a ghost character.
Implements
Namespace: WeaverCore.Components.HitEffects
Assembly: WeaverCore.dll
Syntax
public class HitEffectsGhost : MonoBehaviour, IHitEffects
Fields
| Edit this page View SourceghostHitPt
Declaration
[Space]
[Tooltip("Prefab for ghost hit particles.")]
public GameObject ghostHitPt
Field Value
Type | Description |
---|---|
GameObject |
slashEffectGhost1
Declaration
[Tooltip("Prefab for ghost slash effect 1.")]
public GameObject slashEffectGhost1
Field Value
Type | Description |
---|---|
GameObject |
slashEffectGhost2
Declaration
[Tooltip("Prefab for ghost slash effect 2.")]
public GameObject slashEffectGhost2
Field Value
Type | Description |
---|---|
GameObject |
Methods
| Edit this page View SourceAwake()
Declaration
protected virtual void Awake()
PlayHitEffect(HitInfo, Vector3)
Spawns and plays hit effects based on the hit information.
Declaration
public void PlayHitEffect(HitInfo hit, Vector3 effectsOffset = default)
Parameters
Type | Name | Description |
---|---|---|
HitInfo | hit | Information about the hit. |
Vector3 | effectsOffset | Offset for hit effects. |
Reset()
Declaration
protected virtual void Reset()
Update()
Declaration
protected virtual void Update()