Ejemplo n.º 1
0
        /// <summary>
        /// Adds a model to the viewer.
        /// </summary>
        /// <param name="model">The model to add.</param>
        private void Add(Model model)
        {
            this.model = model;

            // Create an init the new controller
            animator         = new ModelAnimator(Game, model);
            animator.Enabled = true;
            animator.Visible = true;

            InitializeEffects(model);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Adds a model to the viewer.
        /// </summary>
        /// <param name="model">The model to add.</param>
        private void Add(Model model)
        {
            this.model = model;

            // Create an init the new controller
            animator = new ModelAnimator(Game, model);
            animator.Enabled = true;
            animator.Visible = true;

            InitializeEffects(model);

        }