Beispiel #1
0
 public RoutineRunner()
 {
     runner = Object.FindObjectOfType <RunnerMonobehaviour>();
     if (runner == null)
     {
         var go = new GameObject("serviceRunner");
         go.hideFlags = HideFlags.HideAndDontSave;
         runner       = go.AddComponent <RunnerMonobehaviour>();
     }
 }
 public RoutineRunner()
 {
     runner = Object.FindObjectOfType<RunnerMonobehaviour>();
     if(runner == null)
     {
         var go = new GameObject("serviceRunner");
         go.hideFlags = HideFlags.HideAndDontSave;
         runner = go.AddComponent<RunnerMonobehaviour>();
     }
 }