コード例 #1
0
        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();
            }
        }
コード例 #2
0
 void OnTriggerEnter2D(Collider2D col)
 {
     TriggeredEvent?.Invoke(this, col);
 }