public override void Ping(int turn) { if (turn == explodeOnTurn) { Col = Sprite.color; Explosion.SetBool("Explode", true); ExplosionSquare.GetComponent <SpriteRenderer>().color = Invisble; ExplosionSquare.SetActive(false); ExplosionSound.Play(); Collider2D[] colliders = Physics2D.OverlapBoxAll(new Vector2(transform.position.x, transform.position.y), explosionSize, 0); Debug.Log("Colliders: " + colliders.Length); foreach (Collider2D collider in colliders) { Explodable explodable = collider.GetComponent <Explodable>(); if (explodable != null && !Destroyed) { explodable.DetectExplosion(turn); } } base.DetectExplosion(turn); } }