C# Класс RumbleController, goalBall

This class controls what happens when we need to make an XBOX controller Rumble
Наследование: MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
BasicRumble ( float t, float lS, float rS ) : void

Rumble the controller with the following parameters

RumbleBursts ( int bursts, float lS, float rS ) : void

This function allows for bursts of Vibration

Приватные методы

Метод Описание
RumbleAfterDelay ( float delay, float t, float lS, float rS ) : IEnumerator

Coroutine made to have short rumbles over time.

Update ( ) : void

Controls the vibration of the player one controller. When the above variables update it will rumble accordingly.

VibrateForJoystickType ( Joystick, joystick, float lS, float rS ) : void

Execute the correct vibration method for the type of joystick

Описание методов

BasicRumble() публичный Метод

Rumble the controller with the following parameters
public BasicRumble ( float t, float lS, float rS ) : void
t float How long with the rumble last
lS float The left strength of the rumble
rS float the right strength of the rumble.
Результат void

RumbleBursts() публичный Метод

This function allows for bursts of Vibration
public RumbleBursts ( int bursts, float lS, float rS ) : void
bursts int
lS float
rS float
Результат void