Пример #1
0
        private void OnPress()
        {
            var skip = skipPressCallback != null && skipPressCallback.Invoke();

            if (!skip)
            {
                if (mode != ToolMode.None)
                {
                    VRToolSwapper.Equip(mode);
                }
                if (button != JoystickButton.None)
                {
                    ControllerInput.Behaviour.SimulateInput(button, 1);
                }
            }
        }
Пример #2
0
 private void Equip()
 {
     VRToolSwapper.Equip(mode);
 }