public void InitialiseShake(int seed, ShakeType shakeType) { this.interpolatedNoise = new InterpolatedNoise(seed); this.ShakeType = shakeType; this.Position = Vector3.zero; this.EulerRotation = Vector3.zero; }
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; }
public void InitialiseShake(int seed) { this.interpolatedNoise = new InterpolatedNoise(seed); }