public void PointerUntriggered(LaserPointer pointer) { if (_state != State.PointerCaptured) { Debug.LogError("Releasing Pointer if not in State.PointerCaptured?"); } _state = State.Default; if (OnTriggered != null) { Debug.Log("HandlerFound"); OnTriggered.Invoke(); } }
void OnTriggerEnter2D(Collider2D col) { TriggeredEvent?.Invoke(this, col); }