![You can use extension methods to add functionality specific to a particular enum type. In our example we use an enum to define neighbors on a square tiled board. And we add You can use extension methods to add functionality specific to a particular enum type. In our example we use an enum to define neighbors on a square tiled board. And we add](https://preview.redd.it/polm9lbfwus51.png?auto=webp&s=8b6fc34c014099a4ba57ba3ac173af2e08208bc1)
You can use extension methods to add functionality specific to a particular enum type. In our example we use an enum to define neighbors on a square tiled board. And we add
![Switch statements in Unity. A quick guide about switch statements… | by Fernando Alcantara Santana | Nerd For Tech | Medium Switch statements in Unity. A quick guide about switch statements… | by Fernando Alcantara Santana | Nerd For Tech | Medium](https://miro.medium.com/v2/resize:fit:1400/1*CPD-NMreetnLoz2Huif9sw.gif)
Switch statements in Unity. A quick guide about switch statements… | by Fernando Alcantara Santana | Nerd For Tech | Medium
![Switch statements in Unity. A quick guide about switch statements… | by Fernando Alcantara Santana | Nerd For Tech | Medium Switch statements in Unity. A quick guide about switch statements… | by Fernando Alcantara Santana | Nerd For Tech | Medium](https://miro.medium.com/v2/resize:fit:1400/1*IsYq8N095O86qTMlLz4WMw.gif)
Switch statements in Unity. A quick guide about switch statements… | by Fernando Alcantara Santana | Nerd For Tech | Medium
![Don't Be a Basic Coder And Use 5 Possibilities to Avoid The Bad Switch Case | by Arnold Abraham | Towards Data Science Don't Be a Basic Coder And Use 5 Possibilities to Avoid The Bad Switch Case | by Arnold Abraham | Towards Data Science](https://miro.medium.com/v2/resize:fit:1200/1*mFQ2CAwrlIMbJX1rsze3JA.png)
Don't Be a Basic Coder And Use 5 Possibilities to Avoid The Bad Switch Case | by Arnold Abraham | Towards Data Science
![Switch statements in Unity. A quick guide about switch statements… | by Fernando Alcantara Santana | Nerd For Tech | Medium Switch statements in Unity. A quick guide about switch statements… | by Fernando Alcantara Santana | Nerd For Tech | Medium](https://miro.medium.com/v2/resize:fit:1400/1*PB976QXt7PtH8UdhW8tFIA.gif)