/// <summary> /// Crée une animation /// </summary> /// <param name="pType">Type d'animation</param> /// <returns>VO_Animation</returns> public VO_Animation CreateAnimation(Enums.AnimationType type) { switch (type) { case Enums.AnimationType.CharacterFace: return(ObjectsFactory.CreateCharFace()); case Enums.AnimationType.IconAnimation: return(ObjectsFactory.CreateIconAnimation()); case Enums.AnimationType.Menu: return(ObjectsFactory.CreateMenuAnimation()); case Enums.AnimationType.ObjectAnimation: return(ObjectsFactory.CreateAnimation()); } throw new Exception(); }