//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); }
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); }