Пример #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>();
        }
    }
Пример #2
0
    // Start is called before the first frame update
    void Start()
    {
        maxAngle = Drive.maxAngle;
        minAngle = Drive.minAngle;

        if (GrabbingHandModel != null)
        {
            GrabbingHandModel.enabled = false;
        }
        Drive.GetComponent <CircularDrive>().HandAttached += HandCrank_HandAttached;
        Drive.GetComponent <CircularDrive>().HandDetached += HandCrank_HandDetached;
    }