Example #1
0
    private void ViveBridge_Ungripped(object sender, ClickedEventArgs e)
    {
        switch (ViveBridge.InteractionMode)
        {
        case InteractionMode.SpawnPrimitives:
            if (isLocalPlayer)
            {
                Debug.Log("Ungripped");
                if (ViveBridge.IndicatorCount > 0)
                {
                    primitiveManager.UndoSpawns();
                    RpcDecreasePointsText();
                }
            }
            break;

        case InteractionMode.SpawnObjects:
            if (isLocalPlayer)
            {
                radialMenu.CyclePage();
            }
            else
            {
                RpcRadialMenuCyclePage();
            }
            break;
        }
    }
Example #2
0
        private void ViveRightController_Ungripped(object sender, ClickedEventArgs clickedEventArgs)
        {
            switch (ViveBridge.InteractionMode)
            {
            case InteractionMode.SpawnPrimitives:

                Debug.Log("Ungripped");
                if (ViveBridge.IndicatorCount > 0)
                {
                    primitiveManager.UndoSpawns();
                    ViveBridge.IndicatorCount--;
                    UpdateTextMesh();
                }

                break;


            case InteractionMode.SpawnObjects:
                radialMenu.CyclePage();
                break;
            }
        }