using System.Collections;
using System.Collections.Generic;
namespace RynthGames.RynthBank
public sealed class AlarmCircuitBreaker : MonoBehaviour, IInteractiveObject
public IEnumerator OnInteraction()
throw new NotImplementedException();
public sealed class AlarmPanel : MonoBehaviour, IInteractiveObject
public IEnumerator OnInteraction()
throw new NotImplementedException();
public sealed class AlarmSystem : MonoBehaviour
public sealed class Clock : MonoBehaviour
public sealed class Door : MonoBehaviour, IInteractiveObject
public IEnumerator OnInteraction()
throw new NotImplementedException();
public sealed class ExaminableObject : MonoBehaviour, IInteractiveObject
public IEnumerator OnInteraction()
throw new NotImplementedException();
public sealed class GameSystem : MonoBehaviour
public sealed class GameVariables : MonoBehaviour
public float AlarmSystemTrippedPDFLEffect = 0.0f;
public float AlarmSystemTrippedPRFLEffect = 0.0f;
public float AlarmSystemMinTripInterval = 0.0f;
public float AlarmSystemMaxTripInterval = 0.0f;
public float ClockChimePDFLEffect = 0.0f;
public float GhostRFLAt6pm = 0.0f;
public float GhostRFLAt7pm = 0.0f;
public float GhostRFLAt8pm = 0.0f;
public float GhostRFLAt9pm = 0.0f;
public float GhostRFLAt10pm = 0.0f;
public float GhostRFLAt11pm = 0.0f;
public float GhostDFLIncreaseRate = 0.0f;
public float GhostDFLDecreaseRate = 0.0f;
public float GhostMinDecisionInterval = 0.0f;
public float GhostMaxDecisionInterval = 0.0f;
public float GhostRequiredPDFLForSensoryRange0 = 0.0f;
public float GhostRequiredPDFLForSensoryRange1 = 0.0f;
public float GhostRequiredPDFLForSensoryRange2 = 0.0f;
public float GhostRequiredPDFLForSensoryRange3 = 0.0f;
public float GhostRequiredPDFLForSensoryRange4 = 0.0f;
public float LowImpactNoiseRequiredGDFL = 0.0f;
public float LowImpactNoiseRDFLEffect = 0.0f;
public float MediumImpactNoiseRequiredGDFL = 0.0f;
public float MediumImpactNoiseRDFLEffect = 0.0f;
public float HighImpactNoiseRequiredGDFL = 0.0f;
public float HighImpactNoiseRDFLEffect = 0.0f;
public float PlayerDFLIncreaseRate = 0.0f;
public float PlayerDFLDecreaseRate = 0.0f;
public float PlayerRunningRFLEffect = 0.0f;
public float UnoccupiedRoomRFL = 0.0f;
public float UnoccupiedRoomDFLIncreaseRate = 0.0f;
public float UnoccupiedRoomDFLDecreaseRate = 0.0f;
public float OccupiedRoomDFLIncreaseRate = 0.0f;
public float OccupiedRoomDFLDecreaseRate = 0.0f;
public int TimeSystemStartHour = 6;
public int TimeSystemSecondsPerMinute = 5;
public bool TimeSystemEndsAtMidnight = false;
public float TriggerableObjectRequiredGDFL = 0.0f;
public float TriggeredObjectRRFLEffect = 0.0f;
public float UnwitnessedTriggeredObjectRDFLEffect = 0.0f;
public float WitnessedTriggeredObjectRDFLEffect = 0.0f;
public float VisualManifestationRequiredGDFL = 0.0f;
public float VisualManifestationRDFLEffect = 0.0f;
if (GameObject.FindObjectsOfType<GameVariables>().Length > 1)
GameObject.Destroy(this.gameObject);
GameObject.DontDestroyOnLoad(this.gameObject);
public sealed class Ghost : MonoBehaviour
public interface IInteractiveObject
IEnumerator OnInteraction();
public interface IManifestationObject
float GetRequiredGDFLForManifestation();
public interface IRoomObject
public sealed class NoiseObject : MonoBehaviour, IManifestationObject
public float GetRequiredGDFLForManifestation()
throw new NotImplementedException();
public bool OnManifestation()
throw new NotImplementedException();
public sealed class Player : MonoBehaviour
public const string RotationInputAxisName = "Rotation";
public const string MovementInputAxisName = "Movement";
public const string RunButtonName = "Run";
public const string InteractButtonName = "Interact";
public const float TurningSpeed = 180.0f;
public const string MovementDirectionParameterName = "MovementDirection";
public const string IsRunningParameterName = "IsRunning";
public float RotationInputAxis
get { return Input.GetAxis(RotationInputAxisName); }
public float MovementInputAxis
get { return Input.GetAxis(MovementInputAxisName); }
public bool IsRunButtonHeld
get { return Input.GetButton(RunButtonName); }
public bool IsInteractButtonPressed
get { return Input.GetButton(InteractButtonName); }
[RequireComponent(typeof(Collider))]
[RequireComponent(typeof(Renderer))]
public sealed class Room : MonoBehaviour
private Collider colliderComponent = null;
private Renderer rendererComponent = null;
private IRoomObject[] roomObjects = null;
this.colliderComponent.enabled = true;
this.rendererComponent.enabled = true;
foreach (IRoomObject roomObject in this.roomObjects)
this.colliderComponent.enabled = false;
this.rendererComponent.enabled = false;
foreach (IRoomObject roomObject in this.roomObjects)
this.colliderComponent = this.GetComponent<Collider>();
this.rendererComponent = this.GetComponent<Renderer>();
public sealed class SimpleRoomObject : MonoBehaviour, IRoomObject
public bool MuteAudioSources = true;
private AudioSource[] audioSources = null;
private Collider[] colliders = null;
private Renderer[] renderers = null;
if (this.MuteAudioSources)
foreach (AudioSource audioSource in this.audioSources)
audioSource.mute = false;
foreach (Collider collider in this.colliders)
foreach (Renderer renderer in this.renderers)
if (this.MuteAudioSources)
foreach (AudioSource audioSource in this.audioSources)
foreach (Collider collider in this.colliders)
collider.enabled = false;
foreach (Renderer renderer in this.renderers)
renderer.enabled = false;
this.audioSources = this.GetComponentsInChildren<AudioSource>();
this.colliders = this.GetComponentsInChildren<Collider>();
this.renderers = this.GetComponentsInChildren<Renderer>();
public sealed class TimeSystem : MonoBehaviour
public sealed class TriggerableObject : MonoBehaviour, IInteractiveObject, IManifestationObject
public IEnumerator OnInteraction()
throw new NotImplementedException();
public float GetRequiredGDFLForManifestation()
throw new NotImplementedException();
public bool OnManifestation()
throw new NotImplementedException();
public enum TriggerableObjectState
public sealed class VisualManifestation : MonoBehaviour, IManifestationObject, IRoomObject
public float GetRequiredGDFLForManifestation()
throw new NotImplementedException();
public bool OnManifestation()
throw new NotImplementedException();