Ejemplo n.º 1
0
        /// <summary>
        /// Update scene object's state.
        /// </summary>
        public void Update()
        {
            ScriptList scripts = this.Scripts;

            foreach (Script script in scripts)
            {
                script.Update();
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Update scene object's state.
 /// </summary>
 /// <param name="elapsedTime">elapsed time (in milliseconds)</param>
 public void Update(double elapsedTime)
 {
     if (this.Enabled)
     {
         ScriptList scriptList = this.ScriptList;
         foreach (var script in scriptList)
         {
             script.Update(elapsedTime);
         }
     }
 }