Exemple #1
0
 //Destruction
 public bool TryDestroyGem(boardSquare square, bool isCombo)
 {
     if (square != null && square.Gem != null && square.Destructable && !square.AnimPlaying)
     {
         StartCoroutine(square.GemScript.DestroyGem(isCombo));  //Considering just calling square.DestroyGem but don't want to debug if I did this on purpose...
         square.Clear();
     }
     return(square.Destructable);
 }
Exemple #2
0
 public bool TryDestroyGem(boardSquare square)
 {
     if (square != null && square.Gem != null && square.Destructable && !square.AnimPlaying)
     {
         square.GemScript.DestroyGem();
         square.Clear();
         Debug.Log("Destroyed a square");
     }
     return(square.Destructable);
 }