PixelCrushers.DialogueSystem.SimpleController Class Reference

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

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

Static Public Member Functions

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

Public Attributes

AnimationClip idle
 
AnimationClip runForward
 
AnimationClip runBack
 
AnimationClip aim
 
AnimationClip fire
 
Transform upperBodyMixingTransform
 
float runSpeed = 5f
 
float mouseSensitivityX = 15f
 
float mouseSensitivityY = 10f
 
float mouseMinimumY = -60f
 
float mouseMaximumY = 60f
 
LayerMask fireLayerMask = 1
 
AudioClip fireSound
 
float weaponDamage = 100
 

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. Since this is a demo script, it uses standard Unity Input, not the overridable DialogueManager.GetInputButtonDown delegate.

Member Function Documentation

◆ ClampAngle()

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

Member Data Documentation

◆ aim

AnimationClip PixelCrushers.DialogueSystem.SimpleController.aim

◆ fire

AnimationClip PixelCrushers.DialogueSystem.SimpleController.fire

◆ fireLayerMask

LayerMask PixelCrushers.DialogueSystem.SimpleController.fireLayerMask = 1

◆ fireSound

AudioClip PixelCrushers.DialogueSystem.SimpleController.fireSound

◆ idle

AnimationClip PixelCrushers.DialogueSystem.SimpleController.idle

◆ mouseMaximumY

float PixelCrushers.DialogueSystem.SimpleController.mouseMaximumY = 60f

◆ mouseMinimumY

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

◆ mouseSensitivityX

float PixelCrushers.DialogueSystem.SimpleController.mouseSensitivityX = 15f

◆ mouseSensitivityY

float PixelCrushers.DialogueSystem.SimpleController.mouseSensitivityY = 10f

◆ runBack

AnimationClip PixelCrushers.DialogueSystem.SimpleController.runBack

◆ runForward

AnimationClip PixelCrushers.DialogueSystem.SimpleController.runForward

◆ runSpeed

float PixelCrushers.DialogueSystem.SimpleController.runSpeed = 5f

◆ upperBodyMixingTransform

Transform PixelCrushers.DialogueSystem.SimpleController.upperBodyMixingTransform

◆ weaponDamage

float PixelCrushers.DialogueSystem.SimpleController.weaponDamage = 100

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