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

            foreach (Script script in scripts)
            {
                script.Update();
            }
        }
예제 #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);
         }
     }
 }