Class NailTink
When the player hits an object with this component attached, it will cause a nail parry to occur
Implements
Namespace: WeaverCore.Components
Assembly: WeaverCore.dll
Syntax
public class NailTink : MonoBehaviour, IHittable
Fields
| Edit this page View SourceTinkEffectPrefab
Declaration
[Tooltip("The tink prefab that is spawned when the player hits this object")]
public GameObject TinkEffectPrefab
Field Value
| Type | Description |
|---|---|
| GameObject |
TinkSound
Declaration
[Tooltip("The sound that is played when the player hits this object")]
public AudioClip TinkSound
Field Value
| Type | Description |
|---|---|
| AudioClip |
TinkSoundPitch
Declaration
[Tooltip("The pitch of the tink sound")]
public float TinkSoundPitch
Field Value
| Type | Description |
|---|---|
| float |
TinkSoundVolume
Declaration
[Tooltip("The volume of the tink sound")]
public float TinkSoundVolume
Field Value
| Type | Description |
|---|---|
| float |
Methods
| Edit this page View SourceHit(HitInfo)
Called when the player hits the object
Declaration
public bool Hit(HitInfo hit)
Parameters
| Type | Name | Description |
|---|---|---|
| HitInfo | hit | Information about how the player hit the object |
Returns
| Type | Description |
|---|---|
| bool | Returns whether the hit was a valid hit or not |
Events
| Edit this page View SourceOnTink
Declaration
public event Action<IHittable, HitInfo> OnTink
Event Type
| Type | Description |
|---|---|
| Action<IHittable, HitInfo> |