public void Shake() { triggered = true; shake = new Shake(); shake.Init(this.transform, .7f, 10, 1f, 10f); delayCall = new DelayCall(); delayCall.Init(.7f, Expolde); }
public void OnHitPiece(BoardDirection direction, float time) { if (clock != null) { clock.OnHitClock(direction); if (clock.triggered) { delayCall = new DelayCall(); delayCall.Init(time, OnClock); } } }