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); } }
public void AddPhysicsEventListener(AInteractiveObjectPhysicsEventListener aInteractiveObjectPhysicsEventListener) { this.PhysicsEventListeners.Add(aInteractiveObjectPhysicsEventListener); }