Example #1
0
 public void Shake()
 {
     triggered = true;
     shake     = new Shake();
     shake.Init(this.transform, .7f, 10, 1f, 10f);
     delayCall = new DelayCall();
     delayCall.Init(.7f, Expolde);
 }
Example #2
0
 public void Shake()
 {
     if (shaker == null)
     {
         shaker = new Shake();
     }
     if (shaker.isRunning)
     {
         shaker.Stop();
     }
     shaker.Init(this.transform, .25f, 3);
 }