Esempio n. 1
0
 public void Blow(bool big, BlockController block = null)
 {
     explosion.position = block == null ? top : transform.position + Vector3.up * block.index;
     explosionFX.Play();
     if (big)
     {
         sparkles.position = explosion.position;
         sparklesFX.Play();
         if (block == null && lastBlock != null && lastBlock.isBlowable)
         {
             lastBlock.Blow(0, 0);
         }
     }
 }