Globals.Update C# (CSharp) 메소드

Update() 개인적인 메소드

private Update ( ) : void
리턴 void
    void Update()
    {
        deltaTime += (Time.deltaTime - deltaTime) * 0.1f;
    }

Usage Example

예제 #1
0
        // =====
        #region Update

        // Update
        protected override void Update(GameTime gameTime)
        {
            // Entry logging
      #if IS_LOGGING_METHODS
            Log.Write("Entering method");
            Log.Write("============================================");
            Log.Write("*** NOW ENTERING NEW GAME LOOP ITERATION ***");
            Log.Write("============================================");
      #endif

            // Update clock
            Globals.Clock.Update(gameTime.ElapsedGameTime, gameTime.TotalGameTime);

            // Update monitor
      #if IS_MONITORING
            Globals.Monitor.Update();
      #endif

            // Update base
            base.Update(gameTime);
      #if IS_MONITORING
            Globals.Monitor.StopStart();
      #endif

            // Update globals
            Globals.Update();

            // Exit logging
      #if IS_LOGGING_METHODS
            Log.Write("Exiting method");
      #endif
        }
All Usage Examples Of Globals::Update