public void Shake() { if (shaker == null) { shaker = new Shake(); } if (shaker.isRunning) { shaker.Stop(); } shaker.Init(this.transform, .25f, 3); }
public override void Dead() { base.Dead(); if (shake != null) { shake.Stop(); } if (delayCall != null) { delayCall.Stop(); } }
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"); }