Пример #1
0
        public void RegisterInteractiveObjectPhysicsEventListener(AInteractiveObjectPhysicsEventListener AInteractiveObjectPhysicsEventListener)
        {
            if (this.InteractiveGameObject.LogicCollider != null)
            {
                if (this.interactiveInteractiveObjectPhysicsListener == null)
                {
                    this.interactiveInteractiveObjectPhysicsListener = this.InteractiveGameObject.LogicCollider.gameObject.AddComponent <InteractiveInteractiveObjectPhysicsListener>();
                    this.interactiveInteractiveObjectPhysicsListener.Init(this);
                }

                this.interactiveInteractiveObjectPhysicsListener.AddPhysicsEventListener(AInteractiveObjectPhysicsEventListener);
            }
        }
Пример #2
0
 public void AddPhysicsEventListener(AInteractiveObjectPhysicsEventListener aInteractiveObjectPhysicsEventListener)
 {
     this.PhysicsEventListeners.Add(aInteractiveObjectPhysicsEventListener);
 }