// Start is called before the first frame update void Start() { TelemetryDistributor = GetComponent <TelemetryDistributor>(); TelemetryRequester = new TelemetryRequester(); TelemetryDistributor.Init(TelemetryRequester); TelemetryDistributor.SubscribeNewTelemetryDataListener(PrintTelemetryData); }
// Start is called before the first frame update void Start() { OpUICenter = new OpUICenter(); VoiceInputManager voiceInputManager = Instantiate(VoiceInputManagerPrefab); TelemetryGameObject = new GameObject(); telemetryDistributor = TelemetryGameObject.AddComponent <TelemetryDistributor>(); telemetryRequester = new TelemetryRequester(); telemetryDistributor.Init(telemetryRequester); InstantiateUI(OpUICenter, voiceInputManager, telemetryRequester); }