示例#1
0
文件: Game.cs 项目: JBoerrigter/Snake
 public void Continue()
 {
     if (!Running)
     {
         _gameTime.Start();
         Continued?.Invoke(this, EventArgs.Empty);
     }
 }
示例#2
0
 internal ContinuedEvent InvokeEvent(ContinuedEvent arg)
 {
     if (_api.ValidateEvent(arg))
     {
         Continued?.Invoke(_api, arg);
     }
     return(arg);
 }
示例#3
0
 /// <summary>
 /// Raise the Continued event
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnContinued(EventArgs e)
 {
     Continued?.Invoke(this, e);
 }
 public void Continue()
 {
     Running = true;
     Continued?.Invoke(this, new EventArgs());
 }