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>(); } }