Skip to main content

Enchantment

A class in Root.Township, Alta.Enchantments.

An enchantment asset: a list of bindings, each linking triggers to the effects they cause.

Constructors​

MemberWhat it is
Enchantment()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

1 private and internal field
MemberWhat it is
private Enchantment.Binding[] bindingsBacking field for Bindings: each binding pairs triggers with the effects they fire.

Properties​

MemberWhat it is
Enchantment.Binding[] Bindings { get; }The trigger and effect pairs that make up the enchantment.

Used in​

Members of other types that take, return or hold a Enchantment: