コード例 #1
0
        public void RegisterIntersectionEventListener(ARangeIntersectionV2Listener ARangeIntersectionV2Listener,
                                                      RangeObjectV2PhysicsEventListenerComponent associatedRangeObjectV2PhysicsEventListenerComponent)
        {
            if (RangeIntersectionListeners == null)
            {
                RangeIntersectionListeners = new List <ARangeIntersectionV2Listener>();
            }

            associatedRangeObjectV2PhysicsEventListenerComponent.AddPhysicsEventListener(ARangeIntersectionV2Listener);
            RangeIntersectionListeners.Add(ARangeIntersectionV2Listener);
        }
コード例 #2
0
 public void RegisterIntersectionEventListener(ARangeIntersectionV2Listener ARangeIntersectionV2Listener)
 {
     this.RangeIntersectionV2System.RegisterIntersectionEventListener(ARangeIntersectionV2Listener, this.RangeGameObjectV2.RangeObjectV2PhysicsEventListenerComponent);
 }