C# Class ShakeTweenProperty, GoKit

Inheritance: AbstractTweenProperty
Afficher le fichier Open project: prime31/GoKit Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
randomDiminishingTarget ( float falloffValue ) : Vector3

Method Details

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

ShakeTweenProperty() public méthode

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
Résultat System.Collections

prepareForUse() public méthode

public prepareForUse ( ) : void
Résultat void

tick() public méthode

public tick ( float totalElapsedTime ) : void
totalElapsedTime float
Résultat void

validateTarget() public méthode

public validateTarget ( object target ) : bool
target object
Résultat bool