コード例 #1
0
    // Use this for initialization
    void Start()
    {
        _hand = GameObject.Find("Protese").GetComponent <ProsthesisControl>();
        _hand.LoadBones();

        inputs = GameObject.Find("Actions").GetComponent <ViveInputs>();

        maxAperture   = 0;
        minAperture   = 0;
        maxConfigured = false;
        minConfigured = false;
        isFreeze      = false;
        frozenValue   = 101;
    }
コード例 #2
0
    void Start()
    {
        firstFingerIn  = false;
        firstFingerOut = false;
        otherFingerIn  = false;
        otherFingerOut = false;

        estado = 0;

        referenceObject   = GameObject.Find("Protese");
        prosthesisControl = referenceObject.GetComponent <ProsthesisControl> ();
        control           = GameObject.Find("Protese").GetComponent <armControl>();
        root = this.transform.root.gameObject;

        /*dedos = new GameObject[2];
         * dedos [0] = GameObject.Find("indicador_02");
         * dedos [1] = GameObject.Find("polegar_02");*/
    }