PixelCrushers.DialogueSystem.Demo.SimpleController Class Reference

This component implements a very simple third person shooter-style controller. More...

Inheritance diagram for PixelCrushers.DialogueSystem.Demo.SimpleController:
Collaboration diagram for PixelCrushers.DialogueSystem.Demo.SimpleController:

Static Public Member Functions

static float ClampAngle (float angle, float min, float max)
 

Public Attributes

string forwardSpeedFloatParameter = "Speed"
 
string lateralSpeedFloatParameter = "Strafe"
 
string twoHandWeaponBoolParameter = "Rifle"
 
string attackTriggerParameter = "Fire"
 
float runSpeed = 5f
 
float mouseSensitivityX = 15f
 
float mouseSensitivityY = 10f
 
float mouseMinimumY = -60f
 
float mouseMaximumY = 60f
 
bool useTwoHandWeapon = false
 
float hitDelay = 0.3f
 
AudioClip attackSound
 
float hitDistance = 100f
 
LayerMask hitLayerMask = 1
 
string damageMessage = "TakeDamage"
 
float weaponDamage = 100
 
string horizontalAxis = "Horizontal"
 
string verticalAxis = "Vertical"
 
string mouseXAxis = "Mouse X"
 
string mouseYAxis = "Mouse Y"
 
string attackButton = "Fire1"
 

Detailed Description

This component implements a very simple third person shooter-style controller.

The mouse rotates the character, the axes (WASD/arrow keys) move, and the Fire1 button (left mouse button) fires.

Member Function Documentation

◆ ClampAngle()

static float PixelCrushers.DialogueSystem.Demo.SimpleController.ClampAngle ( float  angle,
float  min,
float  max 
)
inlinestatic

Member Data Documentation

◆ attackButton

string PixelCrushers.DialogueSystem.Demo.SimpleController.attackButton = "Fire1"

◆ attackSound

AudioClip PixelCrushers.DialogueSystem.Demo.SimpleController.attackSound

◆ attackTriggerParameter

string PixelCrushers.DialogueSystem.Demo.SimpleController.attackTriggerParameter = "Fire"

◆ damageMessage

string PixelCrushers.DialogueSystem.Demo.SimpleController.damageMessage = "TakeDamage"

◆ forwardSpeedFloatParameter

string PixelCrushers.DialogueSystem.Demo.SimpleController.forwardSpeedFloatParameter = "Speed"

◆ hitDelay

float PixelCrushers.DialogueSystem.Demo.SimpleController.hitDelay = 0.3f

◆ hitDistance

float PixelCrushers.DialogueSystem.Demo.SimpleController.hitDistance = 100f

◆ hitLayerMask

LayerMask PixelCrushers.DialogueSystem.Demo.SimpleController.hitLayerMask = 1

◆ horizontalAxis

string PixelCrushers.DialogueSystem.Demo.SimpleController.horizontalAxis = "Horizontal"

◆ lateralSpeedFloatParameter

string PixelCrushers.DialogueSystem.Demo.SimpleController.lateralSpeedFloatParameter = "Strafe"

◆ mouseMaximumY

float PixelCrushers.DialogueSystem.Demo.SimpleController.mouseMaximumY = 60f

◆ mouseMinimumY

float PixelCrushers.DialogueSystem.Demo.SimpleController.mouseMinimumY = -60f

◆ mouseSensitivityX

float PixelCrushers.DialogueSystem.Demo.SimpleController.mouseSensitivityX = 15f

◆ mouseSensitivityY

float PixelCrushers.DialogueSystem.Demo.SimpleController.mouseSensitivityY = 10f

◆ mouseXAxis

string PixelCrushers.DialogueSystem.Demo.SimpleController.mouseXAxis = "Mouse X"

◆ mouseYAxis

string PixelCrushers.DialogueSystem.Demo.SimpleController.mouseYAxis = "Mouse Y"

◆ runSpeed

float PixelCrushers.DialogueSystem.Demo.SimpleController.runSpeed = 5f

◆ twoHandWeaponBoolParameter

string PixelCrushers.DialogueSystem.Demo.SimpleController.twoHandWeaponBoolParameter = "Rifle"

◆ useTwoHandWeapon

bool PixelCrushers.DialogueSystem.Demo.SimpleController.useTwoHandWeapon = false

◆ verticalAxis

string PixelCrushers.DialogueSystem.Demo.SimpleController.verticalAxis = "Vertical"

◆ weaponDamage

float PixelCrushers.DialogueSystem.Demo.SimpleController.weaponDamage = 100

The documentation for this class was generated from the following file: