protected override void OnAwake()
    {
        micomInput  = gameObject.AddComponent <MicomInput>();
        micomSensor = gameObject.AddComponent <MicomSensor>();

        imuSensor = gameObject.GetComponentInChildren <SensorDevices.IMU>();
    }
예제 #2
0
    protected override void OnAwake()
    {
        type = Type.MICOM;

        micomSensor = gameObject.AddComponent <MicomSensor>();
        micomSensor.SetPluginParameter(parameters);
        micomInput = gameObject.AddComponent <MicomInput>();
        micomInput.SetMicomSensor(micomSensor);
    }