public override void OnTouch(PULSO_Handpad pulsoHand)
    {
        PULSO_DemoRoomsManager.instance.CloseAll();

        gameObject.GetComponent <Renderer>().material.color = PULSO_DemoRoomsManager.instance.buttonSelected;

        openRoom.SetActive(true);
    }
Exemple #2
0
    public void Get(PULSO_Handpad pulso)
    {
        Vibrate(1f, 1f, 0.1f, pulso.handSide);
        transform.SetParent(pulso._handRoot);

        if (profile != null && profileLoaded)
        {
            transform.localPosition = profile.localPos;
            transform.localRotation = profile.localRot;
        }
        else
        {
            ///transform.localPosition = Vector3.zero;
        }

        lastHand = pulso;
    }
Exemple #3
0
 public override void OnTouch(PULSO_Handpad pulsoHand)
 {
     Debug.Log("click");
     light.SetActive(!light.activeSelf);
     Vibrate(1f, 1f, 0.2f, pulsoHand.handSide);
 }
 public override void StopTouch(PULSO_Handpad pulsoHand)
 {
 }
Exemple #5
0
 public override void StopTouch(PULSO_Handpad pulsoHand)
 {
     pulsoHand.StopCallibration();
     render.material = handOutMat;
 }
Exemple #6
0
 public override void OnTouch(PULSO_Handpad pulsoHand)
 {
     pulsoHand.CallibrateFinger(fingerID);
     render.material = handInMat;
 }