コード例 #1
0
 public void InitialiseShake(int seed, ShakeType shakeType)
 {
     this.interpolatedNoise = new InterpolatedNoise(seed);
     this.ShakeType         = shakeType;
     this.Position          = Vector3.zero;
     this.EulerRotation     = Vector3.zero;
 }
コード例 #2
0
 public void InitialiseShake(int seed, ShakeType shakeType, float shakeSpeedPosition, Vector3 shakeRangePosition, float shakeSpeedRotation, Vector3 shakeRangeRotation)
 {
     this.interpolatedNoise  = new InterpolatedNoise(seed);
     this.shakeSpeedPosition = shakeSpeedPosition;
     this.shakeRangePosition = shakeRangePosition;
     this.shakeSpeedRotation = shakeSpeedRotation;
     this.shakeRangeRotation = shakeRangeRotation;
     this.ShakeType          = shakeType;
     this.Position           = Vector3.zero;
     this.EulerRotation      = Vector3.zero;
 }
コード例 #3
0
 public void InitialiseShake(int seed)
 {
     this.interpolatedNoise = new InterpolatedNoise(seed);
 }