C# Events without arguments. How do I handle them?

前端 未结 5 1358
无人及你
无人及你 2020-12-30 23:35

I\'m currently working on a menu system for a game and I have the standard hierarchy for screens and screen elements. (Screens contain some collection of screen elements). I

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-31 00:39

    Going by the PlayerIndexEventArgs type you mentioned, I am assuming you are using XNA, right? If so, take a look at the Game State Management sample. If not the code might help you understand how to do it anyway.

提交回复
热议问题