C# Class ShakeTweenProperty, GoKit

Inheritance: AbstractTweenProperty
Datei anzeigen Open project: prime31/GoKit Class Usage Examples

Public Methods

Method Description
Equals ( object obj ) : bool
GetHashCode ( ) : int
ShakeTweenProperty ( Vector3 shakeMagnitude, GoShakeType shakeType, int frameMod = 1, bool useLocalProperties = false ) : System.Collections

you can shake any combination of position, scale and eulers by passing in a bitmask of the types you want to shake. frameMod allows you to specify what frame count the shakes should occur on. for example, a frameMod of 3 would mean that only when frameCount % 3 == 0 will the shake occur

prepareForUse ( ) : void
tick ( float totalElapsedTime ) : void
validateTarget ( object target ) : bool

Private Methods

Method Description
randomDiminishingTarget ( float falloffValue ) : Vector3

Method Details

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

ShakeTweenProperty() public method

you can shake any combination of position, scale and eulers by passing in a bitmask of the types you want to shake. frameMod allows you to specify what frame count the shakes should occur on. for example, a frameMod of 3 would mean that only when frameCount % 3 == 0 will the shake occur
public ShakeTweenProperty ( Vector3 shakeMagnitude, GoShakeType shakeType, int frameMod = 1, bool useLocalProperties = false ) : System.Collections
shakeMagnitude Vector3
shakeType GoShakeType
frameMod int
useLocalProperties bool
return System.Collections

prepareForUse() public method

public prepareForUse ( ) : void
return void

tick() public method

public tick ( float totalElapsedTime ) : void
totalElapsedTime float
return void

validateTarget() public method

public validateTarget ( object target ) : bool
target object
return bool