/// <summary> /// Adds the collider scene. /// </summary> /// <param name="colliderScene">Collider scene.</param> public void AddColliderScene(ColliderScene colliderScene) { for (int i = 0; i < colliderStreamers.Count; ++i) { ColliderStreamer item = colliderStreamers[i]; if (item != null && item.sceneName == colliderScene.sceneName) { item.SetSceneGameObject(colliderScene.gameObject); break; } } }
/// <summary> /// Adds the collider streamer. /// </summary> /// <param name="colliderStreamer">Collider streamer.</param> public void AddColliderStreamer(ColliderStreamer colliderStreamer) { colliderStreamers.Add(colliderStreamer); }