Beispiel #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);
        }
Beispiel #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);

        }