public void DestroyTiles(DestroyOption destroyOption, bool clearList, bool destroyTiles) { if (destroyOption != DestroyOption.selectedTiles) { if (destroyTiles) { foreach (GameObject tile in rangeTiles) { Destroy(tile); } } if (clearList) { rangeTiles.Clear(); } } if (destroyOption != DestroyOption.rangeTiles) { if (destroyTiles) { foreach (GameObject tile in selectedTiles) { Destroy(tile); } } if (clearList) { selectedTiles.Clear(); } } }
public DestroyParticle(string name, Vector2 position, Point size, DestroyOption option, int particleSize = 10, bool displayModify = true) : base(name, position, size, particleSize, 0.05f) { this.option = option; isDisPlayModify = displayModify; }