![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*PB976QXt7PtH8UdhW8tFIA.gif)
Switch statements in Unity. A quick guide about switch statements… | by Fernando Alcantara Santana | Nerd For Tech | Medium
![Time for action – rolling the dice | Learning C# by Developing Games with Unity 2020 - Fifth Edition Time for action – rolling the dice | Learning C# by Developing Games with Unity 2020 - Fifth Edition](https://static.packt-cdn.com/products/9781800207806/graphics/assets/23cb095c-fd37-4b42-bc3b-feb31c6f62b4.png)