C# Class CameraFollow, Castle-Bashers

Inheritance: MonoBehaviour
显示文件 Open project: DevelopersGuild/Castle-Bashers Class Usage Examples

Public Properties

Property Type Description
cameraShakeIsOn bool
canMoveLeft bool
flDepthOffset float
flVerticalOffset float
flXAxisTolerance float
flYAxisTolerance float
flYChangeSpeed float
isLocked bool
mal MaladyV2
v3DefaultCameraPositionVector Vector3
v3DefaultCameraRotationVector Vector3

Public Methods

Method Description
initalizePosition ( ) : void
setLock ( bool set ) : void
startScreenShake ( float time ) : void

Private Methods

Method Description
CameraShakeCoroutine ( float time ) : IEnumerator
GetXCameraPosition ( float flCameraTargetXPosition ) : float
GetYCameraPosition ( float flCameraTargetYPosition ) : float

Method Details

initalizePosition() public method

public initalizePosition ( ) : void
return void

setLock() public method

public setLock ( bool set ) : void
set bool
return void

startScreenShake() public method

public startScreenShake ( float time ) : void
time float
return void

Property Details

cameraShakeIsOn public_oe property

public bool cameraShakeIsOn
return bool

canMoveLeft public_oe property

public bool canMoveLeft
return bool

flDepthOffset public_oe property

public float flDepthOffset
return float

flVerticalOffset public_oe property

public float flVerticalOffset
return float

flXAxisTolerance public_oe property

public float flXAxisTolerance
return float

flYAxisTolerance public_oe property

public float flYAxisTolerance
return float

flYChangeSpeed public_oe property

public float flYChangeSpeed
return float

isLocked public_oe property

public bool isLocked
return bool

mal public_oe property

public MaladyV2 mal
return MaladyV2

v3DefaultCameraPositionVector public_oe property

public Vector3 v3DefaultCameraPositionVector
return Vector3

v3DefaultCameraRotationVector public_oe property

public Vector3 v3DefaultCameraRotationVector
return Vector3