Class NailDeflect
Causes any nail hits on the object to be deflected. Useful for spikes
Inheritance
Object
Component
Behaviour
MonoBehaviour
NailDeflect
Assembly: WeaverCore.dll
Syntax
public class NailDeflect : MonoBehaviour, IHittable
Properties
|
Edit this page
View Source
deflectTimer
Declaration
public float deflectTimer { get; }
Property Value
|
Edit this page
View Source
repeatDelay
Declaration
public float repeatDelay { get; }
Property 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
|
|
Edit this page
View Source
OnDeflect(HitInfo)
Declaration
protected virtual void OnDeflect(HitInfo hit)
Parameters
|
Edit this page
View Source
PlayDeflectEffects(Vector3, GameObject, CardinalDirection, bool)
Declaration
public static void PlayDeflectEffects(Vector3 playerPosition, GameObject deflectedObject, CardinalDirection hitDirection, bool applyRecoil = true)
Parameters
| Type |
Name |
Description |
| Vector3 |
playerPosition |
|
| GameObject |
deflectedObject |
|
| CardinalDirection |
hitDirection |
|
| bool |
applyRecoil |
|
Implements
Extension Methods