Show / Hide Table of Contents

Class NailDeflect

Causes any nail hits on the object to be deflected. Useful for spikes

Inheritance
object
Object
Component
Behaviour
MonoBehaviour
NailDeflect
Implements
IHittable
Namespace: WeaverCore.Components
Assembly: WeaverCore.dll
Syntax
public class NailDeflect : MonoBehaviour, IHittable

Properties

| Edit this page View Source

deflectTimer

Declaration
public float deflectTimer { get; }
Property Value
Type Description
float
| Edit this page View Source

repeatDelay

Declaration
public float repeatDelay { get; }
Property Value
Type Description
float

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
Type Name Description
HitInfo hit
| 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

IHittable

Extension Methods

ReflectionUtilities.ReflectCallMethod(object, string, object[], BindingFlags)
ReflectionUtilities.ReflectGetField(object, string, BindingFlags)
ReflectionUtilities.ReflectGetMethod(object, string, BindingFlags)
ReflectionUtilities.ReflectGetProperty(object, string, BindingFlags)
ReflectionUtilities.ReflectSetField(object, string, object, BindingFlags)
ReflectionUtilities.ReflectSetProperty(object, string, object, BindingFlags)
CoroutineUtilities.RunCoroutineWhile<T>(T, IEnumerator, Func<bool>)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾