コード例 #1
0
 private void GameEvents_UpdateTick(object sender, EventArgs e)
 {
     if (eventManager == null)
     {
         return;
     }
     eventManager.update();
 }
コード例 #2
0
 /// <summary>Raised after the game state is updated (≈60 times per second).</summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private void OnUpdateTicked(object sender, UpdateTickedEventArgs e)
 {
     eventManager?.update();
 }