public ShakeEvent(ShakeDetail data) { this.data = data; duration = 0.75f; timeRemaining = duration; float rand = 32.0f; noiseOffset.x = UnityEngine.Random.Range(0, rand); noiseOffset.y = UnityEngine.Random.Range(0, rand); noiseOffset.z = UnityEngine.Random.Range(0, rand); }
public void AddShakeEvent(float scalar) { ShakeDetail data = new ShakeDetail(scalar); events.Add(new ShakeEvent(data)); }
public void AddShakeEvent(ShakeDetail data) { events.Add(new ShakeEvent(data)); }