Show / Hide Table of Contents

Class WeaverBench

Used to create custom benches in WeaverCore

Inheritance
object
Object
Component
Behaviour
MonoBehaviour
WeaverBench
Namespace: WeaverCore.Assets.Components
Assembly: WeaverCore.dll
Syntax
public class WeaverBench : MonoBehaviour

Properties

| Edit this page View Source

BenchActive

Is the bench currently active and ready to be sat on?

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

BenchSitOffset

An offset applied to the hero when they sit on the bench

Declaration
public Vector3 BenchSitOffset { get; }
Property Value
Type Description
Vector3

Methods

| Edit this page View Source

ActivateBench()

If the bench isn't active, this will make the bench active and ready to be sat on

Declaration
public void ActivateBench()
| Edit this page View Source

Respawn()

Respawns the player at this bench

Declaration
public void Respawn()
| Edit this page View Source

RespawnSittingOnBench()

Respawns the player sitting on the bench. If "Spawn Sitting On Bench" is false, then the player will be laying on the ground

Declaration
public void RespawnSittingOnBench()

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