예제 #1
0
            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);
            }
예제 #2
0
        public void AddShakeEvent(float scalar)
        {
            ShakeDetail data = new ShakeDetail(scalar);

            events.Add(new ShakeEvent(data));
        }
예제 #3
0
 public void AddShakeEvent(ShakeDetail data)
 {
     events.Add(new ShakeEvent(data));
 }