Class NailTink
When the player hits an object with this component attached, it will cause a nail parry to occur
Inheritance
Object
Component
Behaviour
MonoBehaviour
NailTink
Assembly: WeaverCore.dll
Syntax
public class NailTink : MonoBehaviour, IHittable
Fields
|
Edit this page
View Source
TinkEffectPrefab
Declaration
[Tooltip("The tink prefab that is spawned when the player hits this object")]
public GameObject TinkEffectPrefab
Field Value
Type |
Description |
GameObject |
|
|
Edit this page
View Source
TinkSound
Declaration
[Tooltip("The sound that is played when the player hits this object")]
public AudioClip TinkSound
Field Value
Type |
Description |
AudioClip |
|
|
Edit this page
View Source
TinkSoundPitch
Declaration
[Tooltip("The pitch of the tink sound")]
public float TinkSoundPitch
Field Value
|
Edit this page
View Source
TinkSoundVolume
Declaration
[Tooltip("The volume of the tink sound")]
public float TinkSoundVolume
Field Value
Methods
|
Edit this page
View Source
Hit(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 Source
OnTink
Declaration
public event Action<IHittable, HitInfo> OnTink
Event Type
Implements
Extension Methods