ActionAdventureKit 1.7.3
|
trigger area that adds items to the first character that enters and then destroys itself
useful for simple pickups like coins, health or mana pots
Public Attributes | |
ItemQuantity[] | PickupItems |
GameObject | PickedPrefab |
Public Attributes inherited from AdventureCore.GenericTriggerArea | |
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) |
Protected Member Functions inherited from AdventureCore.GenericTriggerArea | |
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) |
Additional Inherited Members | |
Public Member Functions inherited from AdventureCore.GenericTriggerArea | |
override void | AddItem (GenericTriggerItem item) |
Public Member Functions inherited from AdventureCore.TriggerArea< GenericTriggerArea, GenericTriggerItem > | |
virtual void | AddItem (TItem item) |
virtual void | RemoveItem (TItem item) |
Protected Attributes inherited from AdventureCore.TriggerArea< GenericTriggerArea, GenericTriggerItem > | |
Dictionary< TItem, int > | _items |
Properties inherited from AdventureCore.GenericTriggerArea | |
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 |