예제 #1
0
 public void Shake()
 {
     if (shaker == null)
     {
         shaker = new Shake();
     }
     if (shaker.isRunning)
     {
         shaker.Stop();
     }
     shaker.Init(this.transform, .25f, 3);
 }
예제 #2
0
 public override void Dead()
 {
     base.Dead();
     if (shake != null)
     {
         shake.Stop();
     }
     if (delayCall != null)
     {
         delayCall.Stop();
     }
 }
예제 #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));
     }
 }
예제 #4
0
 public void StopShake()
 {
     OmniShake.Stop(transform);
     StopCoroutine("objShake");
 }