Show / Hide Table of Contents

Class InspectRegion

Used for creating regions the player can inspect. Useful for picking up items or talking to NPCs.

Inheritance
object
Object
Component
Behaviour
MonoBehaviour
InspectRegion
DialogueInspectRegion
GGStatueInspect
ItemInspectRegion
Namespace: WeaverCore.Components
Assembly: WeaverCore.dll
Syntax
public abstract class InspectRegion : MonoBehaviour

Fields

| Edit this page View Source

OnInspect

Event triggered when the region is inspected.

Declaration
public UnityEvent OnInspect
Field Value
Type Description
UnityEvent
| Edit this page View Source

heroLooksUp

Declaration
[SerializeField]
protected bool heroLooksUp
Field Value
Type Description
bool
| Edit this page View Source

promptPrefab

The prefab for the inspection prompt.

Declaration
[SerializeField]
[Tooltip("Prefab for the inspection prompt.")]
public WeaverArrowPrompt promptPrefab
Field Value
Type Description
WeaverArrowPrompt

Properties

| Edit this page View Source

EnableKnightDamageInterrupt

Declaration
public bool EnableKnightDamageInterrupt { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

FullyInspected

Is set to true if the region has been fully inspected.

Declaration
public bool FullyInspected { get; protected set; }
Property Value
Type Description
bool
| Edit this page View Source

Inspectable

Declaration
public bool Inspectable { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

PlayerInRange

Is set to true if the player is currently within range of inspecting.

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

PlayerInspecting

Is set to true if the player is currently inspecting.

Declaration
public bool PlayerInspecting { get; }
Property Value
Type Description
bool

Methods

| Edit this page View Source

Awake()

Declaration
protected virtual void Awake()
| Edit this page View Source

OnDestroy()

Declaration
protected virtual void OnDestroy()
| Edit this page View Source

OnDisable()

Declaration
protected virtual void OnDisable()
| Edit this page View Source

OnEnable()

Declaration
protected virtual void OnEnable()
| Edit this page View Source

OnInspectRoutine()

Called to play the default item pickup animation and trigger the OnInspect UnityEvent. You can override this to provide your own custom animations

Declaration
protected abstract IEnumerator OnInspectRoutine()
Returns
Type Description
IEnumerator
| Edit this page View Source

Reset()

Declaration
protected virtual void Reset()

Events

| Edit this page View Source

OnKnightDamaged

Event triggered after the Knight takes damage.

Declaration
public event AfterTakeDamageHandler OnKnightDamaged
Event Type
Type Description
AfterTakeDamageHandler

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
☀
☾