private void OnInteractiveObjectCreated(CoreInteractiveObject InteractiveObject) { InteractiveObjects.Add(InteractiveObject); var interactiveObjectLogicCollider = InteractiveObject.InteractiveGameObject.GetLogicColliderAsBox(); if (interactiveObjectLogicCollider != null) { InteractiveObjectsIndexedByLogicCollider.Add(interactiveObjectLogicCollider, InteractiveObject); } }
private void OnInteractiveObjectCreated(CoreInteractiveObject InteractiveObject) { InteractiveObjects.Add(InteractiveObject); if (InteractiveObject.InteractiveGameObject != null) { var interactiveObjectLogicCollider = InteractiveObject.InteractiveGameObject.LogicCollider; if (interactiveObjectLogicCollider != null) { InteractiveObjectsIndexedByLogicCollider.Add(interactiveObjectLogicCollider, InteractiveObject); } } InteractiveObject.RegisterInteractiveObjectDestroyedEventListener(this.OnInteractiveObjectDestroyed); }
public void AddInteractiveObject(GameObject interactiveObject) { InteractiveObjects.Add(interactiveObject); }