Ejemplo n.º 1
0
    private void OnTriggerStay(Collider other)
    {
        if (switchPos == SWITCH_POSITION_E.DISABLED)
        {
            return;
        }

        // Keep the press haptic tracking the hand's Y position.
        if (other.name == "HandTrackedBlock")
        {
            Debug.Log("Running on stay");
            Block.transform.position = new UnityEngine.Vector3(
                _pistonPresser.transform.position.x,
                _buttonPositionY
                _pistonPresser.transform.position.z,
                );
        }
    }