ActionAdventureKit 1.5.4
|
simple generic version of trigger area, useful for hooking stuff up to its events
for example gameobjects that should only be active when the player is close or traps
Public Member Functions | |
override void | AddItem (GenericTriggerItem item) |
Public Member Functions inherited from AdventureCore.TriggerArea< GenericTriggerArea, GenericTriggerItem > | |
virtual void | AddItem (TItem item) |
virtual void | RemoveItem (TItem item) |
Public Attributes | |
UnityEvent | Started |
CharacterBase | Character |
string | Key |
UnityEvent< CharacterBase > | CharacterAdded |
UnityEvent< CharacterBase > | CharacterRemoved |
CharacterInstructionBase[] | Instructions |
Public Attributes inherited from AdventureCore.TriggerArea< GenericTriggerArea, GenericTriggerItem > | |
UnityEvent< TItem > | ItemAdded |
UnityEvent< TItem > | ItemRemoved |
UnityEvent | ItemsChanged |
Protected Member Functions | |
override void | onItemAdded (GenericTriggerItem item) |
override void | onItemRemoved (GenericTriggerItem item) |
Protected Member Functions inherited from AdventureCore.TriggerArea< GenericTriggerArea, GenericTriggerItem > | |
virtual void | OnEnable () |
virtual void | OnDisable () |
virtual void | OnTriggerEnter2D (Collider2D collision) |
virtual void | OnTriggerExit2D (Collider2D collision) |
virtual void | OnTriggerEnter (Collider other) |
virtual void | OnTriggerExit (Collider other) |
void | clear () |
virtual void | tryAdd (Component component) |
virtual void | tryRemove (Component component) |
virtual void | onItemAdded (TItem item) |
virtual void | onItemRemoved (TItem item) |
Properties | |
string[] | Keys [get] |
CharacterBase | AssociatedCharacter [get] |
character that owns or is otherwise associted with the object | |
Properties inherited from AdventureCore.TriggerArea< GenericTriggerArea, GenericTriggerItem > | |
IEnumerable< TItem > | Items [get] |
Properties inherited from AdventureCore.ICharacterAssociator |
Additional Inherited Members | |
Protected Attributes inherited from AdventureCore.TriggerArea< GenericTriggerArea, GenericTriggerItem > | |
Dictionary< TItem, int > | _items |
|
get |
character that owns or is otherwise associted with the object
Implements AdventureCore.ICharacterAssociator.