Esempio n. 1
0
    // Start is called before the first frame update
    void Start()
    {
        if (_drive1 != null)
        {
            _linearMapping1 = _drive1.GetComponent <LinearMapping>();
        }

        if (_drive2 != null)
        {
            _linearMapping2 = _drive2.GetComponent <LinearMapping>();
        }

        if (_drive3 != null)
        {
            _linearMapping3 = _drive3.GetComponent <LinearMapping>();
        }

        if (_drive4 != null)
        {
            _linearMapping4 = _drive4.GetComponent <LinearMapping>();
        }
    }
Esempio n. 2
0
 private void Start()
 {
     interactable = slider.GetComponent <Interactable>();
 }