C# Class ProjectStorms.RotateCam

This script takes input from the input manager, and passes the movement into an empty game object with an attached camera. Most of this script was derived from the Unity Example for transform.rotate.
Inheritance: UnityEngine.MonoBehaviour
Mostrar archivo Open project: patferguson/Storms-Project Class Usage Examples

Public Properties

Property Type Description
announcerController UI_Controller
camDistanceFactor float
camPositionFactor float
camProxyTarget UnityEngine.GameObject
camResetMoveSpeed float
camTurnSpeed float
cannons UnityEngine.GameObject[]
frontCannon CannonFire
horizontalTiltAnglePerc float
invertLeftRight bool
invertUpDown bool
lookyHereTarget UnityEngine.GameObject
movingCamResetTime float
rotateCam UnityEngine.GameObject
smooth float
targetHeightFactor float
verticalTiltAnglePerc float

Public Methods

Method Description
PlayerInputs ( float a_camVertical, float a_camHorizontal, float a_triggerAxis, bool a_faceDown, bool a_leftBumper, bool a_rightBumper, bool a_leftClick, bool a_rightClick, bool a_select ) : void
ResetCamRotation ( bool a_snap ) : void
Start ( ) : void
Update ( ) : void

Method Details

PlayerInputs() public method

public PlayerInputs ( float a_camVertical, float a_camHorizontal, float a_triggerAxis, bool a_faceDown, bool a_leftBumper, bool a_rightBumper, bool a_leftClick, bool a_rightClick, bool a_select ) : void
a_camVertical float
a_camHorizontal float
a_triggerAxis float
a_faceDown bool
a_leftBumper bool
a_rightBumper bool
a_leftClick bool
a_rightClick bool
a_select bool
return void

ResetCamRotation() public method

public ResetCamRotation ( bool a_snap ) : void
a_snap bool
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

announcerController public_oe property

public UI_Controller,ProjectStorms announcerController
return UI_Controller

camDistanceFactor public_oe property

public float camDistanceFactor
return float

camPositionFactor public_oe property

public float camPositionFactor
return float

camProxyTarget public_oe property

public GameObject,UnityEngine camProxyTarget
return UnityEngine.GameObject

camResetMoveSpeed public_oe property

Lerp speed for resetting the camera
public float camResetMoveSpeed
return float

camTurnSpeed public_oe property

public float camTurnSpeed
return float

cannons public_oe property

public GameObject[],UnityEngine cannons
return UnityEngine.GameObject[]

frontCannon public_oe property

public CannonFire,ProjectStorms frontCannon
return CannonFire

horizontalTiltAnglePerc public_oe property

public float horizontalTiltAnglePerc
return float

invertLeftRight public_oe property

public bool invertLeftRight
return bool

invertUpDown public_oe property

public bool invertUpDown
return bool

lookyHereTarget public_oe property

public GameObject,UnityEngine lookyHereTarget
return UnityEngine.GameObject

movingCamResetTime public_oe property

Time to wait before beginning to interp the camera back when moving,
public float movingCamResetTime
return float

rotateCam public_oe property

public GameObject,UnityEngine rotateCam
return UnityEngine.GameObject

smooth public_oe property

public float smooth
return float

targetHeightFactor public_oe property

public float targetHeightFactor
return float

verticalTiltAnglePerc public_oe property

public float verticalTiltAnglePerc
return float