Class WeaverChest
WeaverCore's implementation of chests
Inheritance
Object
Component
Behaviour
MonoBehaviour
WeaverChest
Assembly: WeaverCore.dll
Syntax
public class WeaverChest : MonoBehaviour
Fields
|
Edit this page
View Source
OnChestOpen
Declaration
public UnityEvent OnChestOpen
Field Value
Type |
Description |
UnityEvent |
|
|
Edit this page
View Source
chestOpenedSaveField
Declaration
[SerializeField]
[Tooltip("The name of the boolean field in the Save Specific Settings that stores whether the chest has already been opened")]
[SaveSpecificFieldName(typeof(bool), "chestSaveSettings")]
protected string chestOpenedSaveField
Field Value
|
Edit this page
View Source
chestSaveSettings
Declaration
[Header("Persistent Data")]
[SerializeField]
[Tooltip("The save specific settings object used to persistently store if the chest was opened")]
protected SaveSpecificSettings chestSaveSettings
Field Value
|
Edit this page
View Source
largeGeo
Declaration
[SerializeField]
[Tooltip("The amount of large geo to spawn")]
protected int largeGeo
Field Value
|
Edit this page
View Source
mediumGeo
Declaration
[SerializeField]
[Tooltip("The amount of medium geo to spawn")]
protected int mediumGeo
Field Value
|
Edit this page
View Source
smallGeo
Declaration
[Header("Geo")]
[SerializeField]
[Tooltip("The amount of small geo to spawn")]
protected int smallGeo
Field Value
Properties
|
Edit this page
View Source
IsOpened
Returns true if the chest is already opened. Returns false if the chest is closed
Declaration
public virtual bool IsOpened { get; protected set; }
Property Value
|
Edit this page
View Source
MainAnimator
Declaration
public WeaverAnimationPlayer MainAnimator { get; }
Property Value
|
Edit this page
View Source
MainRenderer
Declaration
public SpriteRenderer MainRenderer { get; }
Property Value
Type |
Description |
SpriteRenderer |
|
|
Edit this page
View Source
StruckByNail
Declaration
public bool StruckByNail { get; }
Property Value
Methods
|
Edit this page
View Source
Awake()
Declaration
protected virtual void Awake()
|
Edit this page
View Source
OnOpen()
Called when the chest is opened
Declaration
protected virtual void OnOpen()
|
Edit this page
View Source
OpenChest()
Declaration
Extension Methods