ActionAdventureKit 1.5.4
|
manages the lock on points within its area and decides which one is chosen or switched to
it choses the lock on point that is visible(raycast) and closest to the center of the screen horizontally
it can also unlock a locked in point after some delay when it becomes invisible
Public Member Functions | |
void | Unlock () |
void | Toggle () |
bool | TryToggle (bool hold=false) |
void | OnLock (InputAction.CallbackContext callbackContext) |
void | OnRight (InputAction.CallbackContext callbackContext) |
void | OnLeft (InputAction.CallbackContext callbackContext) |
void | MoveLock (bool left) |
bool | Right () |
bool | Left () |
bool | CheckVisibility (LockOnPoint point) |
Public Member Functions inherited from AdventureCore.TriggerArea< LockOnManager, LockOnPoint > | |
virtual void | AddItem (TItem item) |
virtual void | RemoveItem (TItem item) |
Public Attributes | |
LayerMask | VisibilityMask |
Camera | Camera |
bool | AutoLock |
float | UnlockTime = 1f |
Transform | Visual |
LockOnPoint | HoldingPoint |
UnityEvent< LockOnPoint > | TargetChanged |
UnityEvent< LockOnPoint > | TargetChangedWithoutHolding |
UnityEvent< LockOnPoint > | CandidateChanged |
Public Attributes inherited from AdventureCore.TriggerArea< LockOnManager, LockOnPoint > | |
UnityEvent< TItem > | ItemAdded |
UnityEvent< TItem > | ItemRemoved |
UnityEvent | ItemsChanged |
Protected Member Functions | |
virtual void | onTargetChanged () |
override void | onItemRemoved (LockOnPoint item) |
Protected Member Functions inherited from AdventureCore.TriggerArea< LockOnManager, LockOnPoint > | |
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 | |
LockOnPoint | Candidate [get, set] |
LockOnPoint | Target [get, set] |
LockOnPoint | TargetWithoutHolding [get] |
Properties inherited from AdventureCore.TriggerArea< LockOnManager, LockOnPoint > | |
IEnumerable< TItem > | Items [get] |
Additional Inherited Members | |
Protected Attributes inherited from AdventureCore.TriggerArea< LockOnManager, LockOnPoint > | |
Dictionary< TItem, int > | _items |