I am working on a network project in Unity. following code is currently working but its not optimal since I will have to write very similar code over and over again. I read