Пример #1
0
        public void ResetPlayfield()
        {
            foreach (DropTarget dt in _dropTargets)
            {
                dt.ResetDropTarget();
            }

            // Reset the TUONELA lights and rollovers.
            Rollover.Reset();
        }
Пример #2
0
        private void FlipperInput()
        {
            // If the game is in tilt, the flippers are unavailable

            if (!PinballManager.Instance.Tilt &&
                Input.GetAxis(_LEFTFLIPPERHIT) != 0)
            {
                _leftFlipper.UseMotor();

                if (_leftFlipper.IsReset)
                {
                    Rollover.RollLeft();
                }
            }
            else
            {
                _leftFlipper.UseSpring();
            }

            if (!PinballManager.Instance.Tilt &&
                Input.GetAxis(_RIGHTFLIPPERHIT) != 0)
            {
                _rightFlipper.UseMotor();
                _topRightFlipper.UseMotor();

                if (_rightFlipper.IsReset)
                {
                    Rollover.RollRight();
                }
            }
            else
            {
                _rightFlipper.UseSpring();
                _topRightFlipper.UseSpring();
            }
        }