示例#1
0
 private void OnGameCookerEvent(GameCooker.EventType eventType, ref GameCooker.Options options)
 {
     if (eventType == GameCooker.EventType.BuildFailed)
     {
         FocusOrShow();
     }
 }
示例#2
0
 private void OnGameCookerEvent(GameCooker.EventType type, ref GameCooker.Options options1)
 {
     if (type == GameCooker.EventType.BuildStarted)
     {
         // Execute pre-build action
         if (!string.IsNullOrEmpty(_preBuildAction))
         {
             ExecueAction(_preBuildAction);
         }
         _preBuildAction = null;
     }
     else if (type == GameCooker.EventType.BuildDone)
     {
         // Execute post-build action
         if (!string.IsNullOrEmpty(_postBuildAction))
         {
             ExecueAction(_postBuildAction);
         }
         _postBuildAction = null;
     }
     else if (type == GameCooker.EventType.BuildFailed)
     {
         _postBuildAction = null;
     }
 }
示例#3
0
 private void OnGameCookerEvent(GameCooker.EventType eventType)
 {
     if (eventType == GameCooker.EventType.BuildFailed && !Editor.IsHeadlessMode)
     {
         FocusOrShow();
     }
 }
示例#4
0
 private void OnGameCookerEvent(GameCooker.EventType eventType)
 {
     if (eventType == GameCooker.EventType.BuildFailed && !Editor.IsHeadlessMode && Editor.Options.Options.Interface.FocusOutputLogOnGameBuildError)
     {
         FocusOrShow();
     }
 }
 private void OnGameCookerEvent(GameCooker.EventType eventType)
 {
     switch (eventType)
     {
     case GameCooker.EventType.BuildStarted:
         OnStart();
         OnUpdate(0, "Starting building game..");
         break;
     case GameCooker.EventType.BuildFailed:
         OnEnd();
         break;
     case GameCooker.EventType.BuildDone:
         OnEnd();
         break;
     default: throw new ArgumentOutOfRangeException(nameof(eventType), eventType, null);
     }
 }