This component implements a very simple third person shooter-style controller. More...
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" |
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.
|
inlinestatic |
string PixelCrushers.DialogueSystem.Demo.SimpleController.attackButton = "Fire1" |
AudioClip PixelCrushers.DialogueSystem.Demo.SimpleController.attackSound |
string PixelCrushers.DialogueSystem.Demo.SimpleController.attackTriggerParameter = "Fire" |
string PixelCrushers.DialogueSystem.Demo.SimpleController.damageMessage = "TakeDamage" |
string PixelCrushers.DialogueSystem.Demo.SimpleController.forwardSpeedFloatParameter = "Speed" |
float PixelCrushers.DialogueSystem.Demo.SimpleController.hitDelay = 0.3f |
float PixelCrushers.DialogueSystem.Demo.SimpleController.hitDistance = 100f |
LayerMask PixelCrushers.DialogueSystem.Demo.SimpleController.hitLayerMask = 1 |
string PixelCrushers.DialogueSystem.Demo.SimpleController.horizontalAxis = "Horizontal" |
string PixelCrushers.DialogueSystem.Demo.SimpleController.lateralSpeedFloatParameter = "Strafe" |
float PixelCrushers.DialogueSystem.Demo.SimpleController.mouseMaximumY = 60f |
float PixelCrushers.DialogueSystem.Demo.SimpleController.mouseMinimumY = -60f |
float PixelCrushers.DialogueSystem.Demo.SimpleController.mouseSensitivityX = 15f |
float PixelCrushers.DialogueSystem.Demo.SimpleController.mouseSensitivityY = 10f |
string PixelCrushers.DialogueSystem.Demo.SimpleController.mouseXAxis = "Mouse X" |
string PixelCrushers.DialogueSystem.Demo.SimpleController.mouseYAxis = "Mouse Y" |
float PixelCrushers.DialogueSystem.Demo.SimpleController.runSpeed = 5f |
string PixelCrushers.DialogueSystem.Demo.SimpleController.twoHandWeaponBoolParameter = "Rifle" |
bool PixelCrushers.DialogueSystem.Demo.SimpleController.useTwoHandWeapon = false |
string PixelCrushers.DialogueSystem.Demo.SimpleController.verticalAxis = "Vertical" |
float PixelCrushers.DialogueSystem.Demo.SimpleController.weaponDamage = 100 |