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
Freya ✈🇳🇱 (Oct 4-5) Dutch Game Day on X: "Did you know enum types support functions in C#? It's a neat little trick using extension methods~✨ #unity3d #unitytips https://t.co/iOpsRSQNyE" / X