Class WeaverBench
Used to create custom benches in WeaverCore
Namespace: WeaverCore.Assets.Components
Assembly: WeaverCore.dll
Syntax
public class WeaverBench : MonoBehaviour
Properties
| Edit this page View SourceBenchActive
Is the bench currently active and ready to be sat on?
Declaration
public bool BenchActive { get; }
Property Value
Type | Description |
---|---|
bool |
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 SourceActivateBench()
If the bench isn't active, this will make the bench active and ready to be sat on
Declaration
public void ActivateBench()
Respawn()
Respawns the player at this bench
Declaration
public void Respawn()
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()