ActionAdventureKit 1.8.0
|
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) |
![]() | |
virtual void | AddItem (TItem item) |
virtual void | RemoveItem (TItem item) |
Public Attributes | |
LayerMask | VisibilityMask |
Camera | Camera |
bool | AutoLock |
bool | CycleLock |
float | UnlockTime = 1f |
Transform | Visual |
LockOnPoint | HoldingPoint |
UnityEvent< LockOnPoint > | TargetChanged |
UnityEvent< LockOnPoint > | TargetChangedWithoutHolding |
UnityEvent< LockOnPoint > | CandidateChanged |
![]() | |
UnityEvent< TItem > | ItemAdded |
UnityEvent< TItem > | ItemRemoved |
UnityEvent | ItemsChanged |
Protected Member Functions | |
virtual void | onTargetChanged () |
override void | onItemRemoved (LockOnPoint item) |
![]() | |
virtual void | OnEnable () |
virtual void | OnDisable () |
virtual void | OnTriggerEnter2D (Collider2D collider) |
virtual void | OnTriggerExit2D (Collider2D collider) |
virtual void | OnTriggerEnter (Collider collider) |
virtual void | OnTriggerExit (Collider collider) |
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] |
![]() | |
IEnumerable< TItem > | Items [get] |
Additional Inherited Members | |
![]() | |
Dictionary< TItem, int > | _items |