Esempio n. 1
0
 public void Shake()
 {
     if (shaker == null)
     {
         shaker = new Shake();
     }
     if (shaker.isRunning)
     {
         shaker.Stop();
     }
     shaker.Init(this.transform, .25f, 3);
 }
Esempio n. 2
0
 public override void Dead()
 {
     base.Dead();
     if (shake != null)
     {
         shake.Stop();
     }
     if (delayCall != null)
     {
         delayCall.Stop();
     }
 }
Esempio n. 3
0
 static int Stop(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         Shake obj = (Shake)ToLua.CheckObject(L, 1, typeof(Shake));
         obj.Stop();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 public void StopShake()
 {
     OmniShake.Stop(transform);
     StopCoroutine("objShake");
 }