/// <summary> /// Determines whether this tile instance is a valid target for colorBombInteraction /// </summary> /// <returns> /// <c>true</c> if this instance is valid target; otherwise, <c>false</c>. /// </returns> public bool IsValidTarget(AbstractTile tile, TileColorType destroyColor) { NormalTile target = tile as NormalTile; // if (target != null && // target.IsDestructible && // target.TileColor == destroyColor) // { // return true; // } // return false; // return(target != null && target.IsDestructible && target.TileColor == destroyColor && !target.IsDestroying && !(target is SnowTile) && !target.IsFrozen()); }
protected bool IsGlacierShardTargetValid(NormalTile targetTile) { return(targetTile != null && !(targetTile is SnowTile) && !(targetTile is FreezerTile) && !targetTile.IsFrozen() && targetTile.IsDestructible && !targetTile.IsDestroying); }
protected bool IsGlacierShardTargetValid(NormalTile targetTile) { return targetTile != null && !(targetTile is SnowTile) && !(targetTile is FreezerTile) && !targetTile.IsFrozen() && targetTile.IsDestructible && !targetTile.IsDestroying; }