Class ControllerHandler
- Namespace
- Global
- Assembly
- Assembly-CSharp.dll
public class ControllerHandler : MonoBehaviour
- Inheritance
-
Object
Component
Behaviour
MonoBehaviour
ControllerHandler
- Inherited Members
-
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.useGUILayout
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.transform
Component.gameObject
Component.tag
Object.GetInstanceID()
Object.GetHashCode()
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.ToString()
Object.name
Object.hideFlags
Fields
DEFAULT_FLICKERAMOUNT
public const int DEFAULT_FLICKERAMOUNT = 3
Field Value
- int
DEFAULT_PULSEINCREMENT
public const float DEFAULT_PULSEINCREMENT = 0.00625
Field Value
- float
FINALPULSEINCREMENT
public const float FINALPULSEINCREMENT = 0.1
Field Value
- float
MAXRUMBLES
public const int MAXRUMBLES = 3
Field Value
- int
MAXRUMBLETIMES
public const float MAXRUMBLETIMES = 45
Field Value
- float
RUMBLE_CHANGE_RATE
public const float RUMBLE_CHANGE_RATE = 2
Field Value
- float
RUMBLE_DELAY_TIME_S
public const float RUMBLE_DELAY_TIME_S = 2
Field Value
- float
VIBRATION_RANGE_ADJUST
public const float VIBRATION_RANGE_ADJUST = 0.8
Field Value
- float
configurationEventWired
public static bool configurationEventWired
Field Value
- bool
controllerHandlers
public static List<ControllerHandler> controllerHandlers
Field Value
- List<ControllerHandler>
cycleLength
Field Value
- int
fadeIn
Field Value
- bool
hudCirclesRemaining
public int hudCirclesRemaining
Field Value
- int
isFlickering
Field Value
- bool
lastRoomInDanger
public bool lastRoomInDanger
Field Value
- bool
lastSlugcat
public SlugcatStats.Name lastSlugcat
Field Value
- SlugcatStats.Name
lightBarColorPercentage
public float lightBarColorPercentage
Field Value
- float
needsInitialize
public bool needsInitialize
Field Value
- bool
pipSize
Field Value
- int
playerDead
Field Value
- bool
playerHandler
public PlayerHandler playerHandler
Field Value
- PlayerHandler
pulseIncrement
public float pulseIncrement
Field Value
- float
pulseRumbleAmount
public float pulseRumbleAmount
Field Value
- float
pulseRumbleStartTimeS
public float pulseRumbleStartTimeS
Field Value
- float
pulseRumbleTimeS
public float pulseRumbleTimeS
Field Value
- float
requestPulseRumble
public bool requestPulseRumble
Field Value
- bool
rumbleAmount
public float rumbleAmount
Field Value
- float
rumbleNeedsUpdate
public bool rumbleNeedsUpdate
Field Value
- bool
rumblePaused
Field Value
- bool
rumbleRestStartTimeS
public float rumbleRestStartTimeS
Field Value
- float
rumbleStartTimeS
public float rumbleStartTimeS
Field Value
- float
rumbleState
public ControllerHandler.RumbleState rumbleState
Field Value
- ControllerHandler.RumbleState
targetRumbleAmount
public float targetRumbleAmount
Field Value
- float
timesToRumble
Field Value
- int
warningSetUp
Field Value
- bool
Methods
AttemptScreenShakeRumble(float)
public void AttemptScreenShakeRumble(float screenShakeAmount)
Parameters
screenShakeAmount float
Awake()
DoFlicker()
public IEnumerator DoFlicker()
Returns
- IEnumerator
FlickerLightBar()
public void FlickerLightBar()
GetCurrentSlugcat()
public SlugcatStats.Name GetCurrentSlugcat()
Returns
- SlugcatStats.Name
OnDestroy()
OnPlayerDeath()
public void OnPlayerDeath()
PulseLightBar()
public void PulseLightBar()
Reset(bool)
public void Reset(bool isPlayerDead)
Parameters
isPlayerDead bool
SetLightBarColour(Color)
public void SetLightBarColour(Color colour)
Parameters
colour Color
SetRumbleAmount(float)
public void SetRumbleAmount(float rumbleAmount)
Parameters
rumbleAmount float
SetRumblePaused(bool)
public void SetRumblePaused(bool paused)
Parameters
paused bool
StopRumble()
StopRumbleInternal()
public void StopRumbleInternal()
TriggerWarningRumble()
public void TriggerWarningRumble()
Update()
UpdateRumble()
public void UpdateRumble()
UpdateWarning(int, int, bool)
public void UpdateWarning(int timer, int timeUntilRain, bool roomInDanger)
Parameters
timer int
timeUntilRain int
roomInDanger bool
public static void UserInput_OnControllerConfigurationChanged()
WarningSetUp(int)
public void WarningSetUp(int cycleLength)
Parameters
cycleLength int