Esempio n. 1
0
    void Start()
    {
        _carController    = GetComponent <CarController>();
        _manualController = GetComponent <ManualController>();
        _controlSwitch    = GetComponent <ControlSwitch>();

        if (shouldInit && FFB.needInit)
        {
            FFB.ForceFeedBackInit();
            #if !UNITY_EDITOR
            FFB.AcquireDevice();
            #endif
        }
        #if UNITY_EDITOR
        FFB.AcquireDevice();
        #endif
    }