public SceneAnimations(Helpers_SceneLoadedSubset scene) { if (scene == null) { return; } foreach (var entity in scene.Entities) { var controller = entity.FindComponent <Aluna.ComponentAnimationController>(); if (controller != null) { for (int i = 0; i < controller.GetAnimationCount(); i++) { string animationName = controller.GetAnimationName(i); if (!m_animationControllersMap.ContainsKey(animationName)) { m_animationControllersMap.Add(animationName, new List <Aluna.ComponentAnimationController>()); } m_animationControllersMap[animationName].Add(controller); } } } }
public Door(Engine engine, Scene scene) { m_engine = engine; m_loadedScene = scene.LoadScene("Scenes/HallwayDoor_01.mfs"); m_animationHelper = new Helpers.SceneAnimations(m_loadedScene); }