C# Class CameraScript, WaitingForHorus

Inheritance: MonoBehaviour
Show file Open project: merveilles/WaitingForHorus Class Usage Examples

Public Properties

Property Type Description
BarrelFirstPersonOffsetTransform Transform
CrosshairSmoothingSpeed float
ExteriorViewOffset Vector3
HackDisableShadowsObjects GameObject[]
HasSmoothedRotation bool
InteriorViewOffset Vector3
ObjectsToHideInFirstPerson GameObject[]
UsesRaycastCrosshair bool
ZoomedFieldOfViewRatio float
collisionRadius float
crosshair Texture2D
minDistance float
player PlayerScript
smoothing float

Private Properties

Property Type Description
ReceiveExteriorViewOptionChanged void
ReceiveFOVChanged void
UpdateCameraObjectVisibiliy void

Public Methods

Method Description
AddGunShotImpulse ( float amount ) : void
AddYSpringImpulse ( float impulse ) : void
AdjustCameraFOVInstantly ( ) : void
Awake ( ) : void
CalculateGunShotImpulse ( float amount ) : Vector3
FixedUpdate ( ) : void
GetCrosshairPosition ( ) : Vector2
GetTargetPosition ( ) : Vector3
LateUpdate ( ) : void
OnDestroy ( ) : void
OnGUI ( ) : void
Render ( float size, Color color ) : void
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
ReceiveExteriorViewOptionChanged ( bool newIsExterior ) : void
ReceiveFOVChanged ( float fov ) : void
UpdateCameraObjectVisibiliy ( ) : void

Method Details

AddGunShotImpulse() public method

public AddGunShotImpulse ( float amount ) : void
amount float
return void

AddYSpringImpulse() public method

public AddYSpringImpulse ( float impulse ) : void
impulse float
return void

AdjustCameraFOVInstantly() public method

public AdjustCameraFOVInstantly ( ) : void
return void

Awake() public method

public Awake ( ) : void
return void

CalculateGunShotImpulse() public method

public CalculateGunShotImpulse ( float amount ) : Vector3
amount float
return Vector3

FixedUpdate() public method

public FixedUpdate ( ) : void
return void

GetCrosshairPosition() public method

public GetCrosshairPosition ( ) : Vector2
return Vector2

GetTargetPosition() public method

public GetTargetPosition ( ) : Vector3
return Vector3

LateUpdate() public method

public LateUpdate ( ) : void
return void

OnDestroy() public method

public OnDestroy ( ) : void
return void

OnGUI() public method

public OnGUI ( ) : void
return void

Render() public method

public Render ( float size, Color color ) : void
size float
color Color
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

BarrelFirstPersonOffsetTransform public property

public Transform BarrelFirstPersonOffsetTransform
return Transform

CrosshairSmoothingSpeed public property

public float CrosshairSmoothingSpeed
return float

ExteriorViewOffset public property

public Vector3 ExteriorViewOffset
return Vector3

HackDisableShadowsObjects public property

public GameObject[] HackDisableShadowsObjects
return GameObject[]

HasSmoothedRotation public property

public bool HasSmoothedRotation
return bool

InteriorViewOffset public property

public Vector3 InteriorViewOffset
return Vector3

ObjectsToHideInFirstPerson public property

public GameObject[] ObjectsToHideInFirstPerson
return GameObject[]

UsesRaycastCrosshair public property

public bool UsesRaycastCrosshair
return bool

ZoomedFieldOfViewRatio public property

public float ZoomedFieldOfViewRatio
return float

collisionRadius public property

public float collisionRadius
return float

crosshair public property

public Texture2D crosshair
return Texture2D

minDistance public property

public float minDistance
return float

player public property

public PlayerScript player
return PlayerScript

smoothing public property

public float smoothing
return float