예제 #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);
 }
예제 #2
0
 public void OnHitPiece(BoardDirection direction, float time)
 {
     if (clock != null)
     {
         clock.OnHitClock(direction);
         if (clock.triggered)
         {
             delayCall = new DelayCall();
             delayCall.Init(time, OnClock);
         }
     }
 }