C# Class DemoScript, OZML

Inheritance: MonoBehaviour
Mostra file Open project: merveilles/OZML Class Usage Examples

Public Properties

Property Type Description
m_EarthquakeSound UnityEngine.AudioClip
m_ExplosionSound UnityEngine.AudioClip
m_StompSound UnityEngine.AudioClip

Public Methods

Method Description
DemoExamples ( ) : void
DemoForces ( ) : void
DemoIntro ( ) : void
DemoMouseInput ( ) : void
DemoOutro ( ) : void
DemoPivot ( ) : void
DemoPreset ( ) : void
DemoShooter ( ) : void
DemoWeaponLayer ( ) : void
DemoWeaponPerspective ( ) : void
DoCrouch ( ) : void
DoScreenTransition ( ) : void
DontCrouch ( ) : void
DrawBoxes ( string caption, string description ) : void
DrawCrosshair ( ) : void
DrawEditorPreview ( Texture section ) : void
DrawFullScreenText ( ) : void
DrawImage ( Texture image ) : void
DrawImage ( Texture image, float xOffset, float yOffset ) : void
Fire ( ) : void
LoadCamera ( string preset ) : void
LoadWeaponPreset ( string weaponPreset, string shooterPreset = "", bool smoothFade = false ) : void
LockPlayer ( Vector3 pos, Vector2 startAngle ) : void
LockPlayer ( Vector3 pos, Vector2 startAngle, bool lockCamera ) : void
OnGUI ( ) : void
Reset ( ) : void
Start ( ) : void
SwitchWeapon ( int weapon, string weaponPreset, string shooterPreset = "" ) : void
Teleport ( Vector3 pos, Vector2 startAngle ) : void
UnlockPlayer ( ) : void
Update ( ) : void
ZoomIn ( ) : void
ZoomOut ( ) : void

Private Methods

Method Description
ButtonColumn ( int y, int sel, string strings ) : int
ButtonToggle ( Rect rect, string label, bool state, bool arrow ) : bool
InitGUIStyles ( ) : void
ToggleColumn ( int width, int y, int sel, string strings, bool center, bool arrow ) : int

Method Details

DemoExamples() public method

public DemoExamples ( ) : void
return void

DemoForces() public method

public DemoForces ( ) : void
return void

DemoIntro() public method

public DemoIntro ( ) : void
return void

DemoMouseInput() public method

public DemoMouseInput ( ) : void
return void

DemoOutro() public method

public DemoOutro ( ) : void
return void

DemoPivot() public method

public DemoPivot ( ) : void
return void

DemoPreset() public method

public DemoPreset ( ) : void
return void

DemoShooter() public method

public DemoShooter ( ) : void
return void

DemoWeaponLayer() public method

public DemoWeaponLayer ( ) : void
return void

DemoWeaponPerspective() public method

public DemoWeaponPerspective ( ) : void
return void

DoCrouch() public method

public DoCrouch ( ) : void
return void

DoScreenTransition() public method

public DoScreenTransition ( ) : void
return void

DontCrouch() public method

public DontCrouch ( ) : void
return void

DrawBoxes() public method

public DrawBoxes ( string caption, string description ) : void
caption string
description string
return void

DrawCrosshair() public method

public DrawCrosshair ( ) : void
return void

DrawEditorPreview() public method

public DrawEditorPreview ( Texture section ) : void
section Texture
return void

DrawFullScreenText() public method

public DrawFullScreenText ( ) : void
return void

DrawImage() public method

public DrawImage ( Texture image ) : void
image Texture
return void

DrawImage() public method

public DrawImage ( Texture image, float xOffset, float yOffset ) : void
image Texture
xOffset float
yOffset float
return void

Fire() public method

public Fire ( ) : void
return void

LoadCamera() public method

public LoadCamera ( string preset ) : void
preset string
return void

LoadWeaponPreset() public method

public LoadWeaponPreset ( string weaponPreset, string shooterPreset = "", bool smoothFade = false ) : void
weaponPreset string
shooterPreset string
smoothFade bool
return void

LockPlayer() public method

public LockPlayer ( Vector3 pos, Vector2 startAngle ) : void
pos Vector3
startAngle Vector2
return void

LockPlayer() public method

public LockPlayer ( Vector3 pos, Vector2 startAngle, bool lockCamera ) : void
pos Vector3
startAngle Vector2
lockCamera bool
return void

OnGUI() public method

public OnGUI ( ) : void
return void

Reset() public method

public Reset ( ) : void
return void

Start() public method

public Start ( ) : void
return void

SwitchWeapon() public method

public SwitchWeapon ( int weapon, string weaponPreset, string shooterPreset = "" ) : void
weapon int
weaponPreset string
shooterPreset string
return void

Teleport() public method

public Teleport ( Vector3 pos, Vector2 startAngle ) : void
pos Vector3
startAngle Vector2
return void

UnlockPlayer() public method

public UnlockPlayer ( ) : void
return void

Update() public method

public Update ( ) : void
return void

ZoomIn() public method

public ZoomIn ( ) : void
return void

ZoomOut() public method

public ZoomOut ( ) : void
return void

Property Details

m_EarthquakeSound public_oe property

public AudioClip,UnityEngine m_EarthquakeSound
return UnityEngine.AudioClip

m_ExplosionSound public_oe property

public AudioClip,UnityEngine m_ExplosionSound
return UnityEngine.AudioClip

m_StompSound public_oe property

public AudioClip,UnityEngine m_StompSound
return UnityEngine.AudioClip