Table of Contents

Class GameManager

Namespace
VoxelPlayground.Gaming
Assembly
GamePlay.dll
public class GameManager : Singleton<GameManager>
Inheritance
object
GameManager
Inherited Members
Extension Methods

Fields

cheatMode

[ShowInInspector]
public static bool cheatMode

Field Value

bool

currentPlayer

public EntityCharacter currentPlayer

Field Value

EntityCharacter

deadzoneMax

public const string deadzoneMax = "DeadzoneMax"

Field Value

string

deadzoneMin

public const string deadzoneMin = "DeadzoneMin"

Field Value

string

debugConsole

public GameObject debugConsole

Field Value

GameObject

devMode

public bool devMode

Field Value

bool

disableBulletDmg

public bool disableBulletDmg

Field Value

bool

enableCameraFollowStr

public const string enableCameraFollowStr = "EnableCameraFollow"

Field Value

string

enableConstructionModeStr

public const string enableConstructionModeStr = "EnableConstruction"

Field Value

string

enableDebugConsoleStr

public const string enableDebugConsoleStr = "EnableDebugConsole"

Field Value

string

enableDevToolsStr

public const string enableDevToolsStr = "EnableDevTools"

Field Value

string

enableGravityStr

public const string enableGravityStr = "Gravity"

Field Value

string

enableMusicStr

public const string enableMusicStr = "EnableMusic"

Field Value

string

enablePassthroughStr

public const string enablePassthroughStr = "EnablePassthrough"

Field Value

string

enableSoundStr

public const string enableSoundStr = "EnableSoundFX"

Field Value

string

entityNotifier

public EntityNotifier entityNotifier

Field Value

EntityNotifier

heightCalibrationStr

public const string heightCalibrationStr = "HeightCalibration"

Field Value

string

mainCamera

public Camera mainCamera

Field Value

Camera

mainSceneMode

public MainSceneMode mainSceneMode

Field Value

MainSceneMode

modeData

[HideInInspector]
public ModeData modeData

Field Value

ModeData

onViewTypeChanged

public static Action<CameraViewType> onViewTypeChanged

Field Value

Action<CameraViewType>

pathFinderGrid

public PathFinderGrid pathFinderGrid

Field Value

PathFinderGrid

sandBoxMode

public SandBoxMode sandBoxMode

Field Value

SandBoxMode

settingsBaseTimeScale

public float settingsBaseTimeScale

Field Value

float

targetFrameRate

public static float targetFrameRate

Field Value

float

targetFrameTime

public static float targetFrameTime

Field Value

float

timeScaleStr

public const string timeScaleStr = "TimeScale"

Field Value

string

turnModeStr

public const string turnModeStr = "TurnMode"

Field Value

string

turnSnapAngleStr

public const string turnSnapAngleStr = "TurnSnapAngle"

Field Value

string

turnSpeedStr

public const string turnSpeedStr = "TurnSpeed"

Field Value

string

useMouseTest

public bool useMouseTest

Field Value

bool

useWristUI

public bool useWristUI

Field Value

bool

voxelStage

public VoxelStage voxelStage

Field Value

VoxelStage

XRCamera

public XRCamera XRCamera

Field Value

XRCamera

Properties

currentGameMode

public IGameMode currentGameMode { get; }

Property Value

IGameMode

currentLevel

public static VoxelScene currentLevel { get; }

Property Value

VoxelScene

currentPlayerInfo

public static PlayerInfo currentPlayerInfo { get; }

Property Value

PlayerInfo

currentViewType

public CameraViewType currentViewType { get; }

Property Value

CameraViewType

FrameRate

public float FrameRate { get; }

Property Value

float

FrameTime

public float FrameTime { get; }

Property Value

float

MotionRate

public float MotionRate { get; }

Property Value

float

turnMode

public GameManager.TurnMode turnMode { get; }

Property Value

GameManager.TurnMode

turnSnapAngle

public float turnSnapAngle { get; }

Property Value

float

turnSpeed

public float turnSpeed { get; }

Property Value

float

Methods

AttachPathFinderGrid(Transform)

public void AttachPathFinderGrid(Transform targetTransform)

Parameters

targetTransform Transform

Awake()

protected override void Awake()

BackToMainMenu()

public void BackToMainMenu()

ChangeGameMode(IGameMode)

public void ChangeGameMode(IGameMode gameMode)

Parameters

gameMode IGameMode

ChangeToSandboxMode()

public void ChangeToSandboxMode()

DisableTimeBudgetForWhile(int)

public void DisableTimeBudgetForWhile(int frames = 500)

Parameters

frames int

EnterFirstPersonView()

public void EnterFirstPersonView()

EnterGodView()

public void EnterGodView()

LoadCurrentSetting(string, float)

public void LoadCurrentSetting(string name, float defaultValue = 1)

Parameters

name string
defaultValue float

lowEndDevice()

public static bool lowEndDevice()

Returns

bool

OnCalibrationFinished()

public void OnCalibrationFinished()

SetMotionRate(float)

[Button]
public void SetMotionRate(float scale)

Parameters

scale float

SetWristUIsEnable(bool)

public void SetWristUIsEnable(bool enable)

Parameters

enable bool