private void HandleStatusCommandComplete(int exitCode, string output, string error, StartupCompleteHandler callback) { if (exitCode == 0) { callback(true); } else { Debug.LogError("lfs status failed: " + error); callback(false); } }
public void Start(StartupCompleteHandler callback) { _commandRunner.Run("lfs status", (code, output, error) => HandleStatusCommandComplete(code, output, error, callback)); }