C# Класс DemoScript, OZML

Наследование: MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
m_EarthquakeSound UnityEngine.AudioClip
m_ExplosionSound UnityEngine.AudioClip
m_StompSound UnityEngine.AudioClip

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

Метод Описание
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

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

Метод Описание
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

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

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

public DemoExamples ( ) : void
Результат void

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

public DemoForces ( ) : void
Результат void

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

public DemoIntro ( ) : void
Результат void

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

public DemoMouseInput ( ) : void
Результат void

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

public DemoOutro ( ) : void
Результат void

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

public DemoPivot ( ) : void
Результат void

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

public DemoPreset ( ) : void
Результат void

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

public DemoShooter ( ) : void
Результат void

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

public DemoWeaponLayer ( ) : void
Результат void

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

public DemoWeaponPerspective ( ) : void
Результат void

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

public DoCrouch ( ) : void
Результат void

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

public DoScreenTransition ( ) : void
Результат void

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

public DontCrouch ( ) : void
Результат void

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

public DrawBoxes ( string caption, string description ) : void
caption string
description string
Результат void

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

public DrawCrosshair ( ) : void
Результат void

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

public DrawEditorPreview ( Texture section ) : void
section Texture
Результат void

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

public DrawFullScreenText ( ) : void
Результат void

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

public DrawImage ( Texture image ) : void
image Texture
Результат void

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

public DrawImage ( Texture image, float xOffset, float yOffset ) : void
image Texture
xOffset float
yOffset float
Результат void

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

public Fire ( ) : void
Результат void

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

public LoadCamera ( string preset ) : void
preset string
Результат void

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

public LoadWeaponPreset ( string weaponPreset, string shooterPreset = "", bool smoothFade = false ) : void
weaponPreset string
shooterPreset string
smoothFade bool
Результат void

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

public LockPlayer ( Vector3 pos, Vector2 startAngle ) : void
pos Vector3
startAngle Vector2
Результат void

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

public LockPlayer ( Vector3 pos, Vector2 startAngle, bool lockCamera ) : void
pos Vector3
startAngle Vector2
lockCamera bool
Результат void

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

public OnGUI ( ) : void
Результат void

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

public Reset ( ) : void
Результат void

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

public Start ( ) : void
Результат void

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

public SwitchWeapon ( int weapon, string weaponPreset, string shooterPreset = "" ) : void
weapon int
weaponPreset string
shooterPreset string
Результат void

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

public Teleport ( Vector3 pos, Vector2 startAngle ) : void
pos Vector3
startAngle Vector2
Результат void

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

public UnlockPlayer ( ) : void
Результат void

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

public Update ( ) : void
Результат void

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

public ZoomIn ( ) : void
Результат void

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

public ZoomOut ( ) : void
Результат void

Описание свойств

m_EarthquakeSound публичное свойство

public AudioClip,UnityEngine m_EarthquakeSound
Результат UnityEngine.AudioClip

m_ExplosionSound публичное свойство

public AudioClip,UnityEngine m_ExplosionSound
Результат UnityEngine.AudioClip

m_StompSound публичное свойство

public AudioClip,UnityEngine m_StompSound
Результат UnityEngine.AudioClip