protected override void OnAwake() { micomInput = gameObject.AddComponent <MicomInput>(); micomSensor = gameObject.AddComponent <MicomSensor>(); imuSensor = gameObject.GetComponentInChildren <SensorDevices.IMU>(); }
protected override void OnAwake() { type = Type.MICOM; micomSensor = gameObject.AddComponent <MicomSensor>(); micomSensor.SetPluginParameter(parameters); micomInput = gameObject.AddComponent <MicomInput>(); micomInput.SetMicomSensor(micomSensor); }