Quantcast
Channel: BlogoSfera » parameter?
Viewing all articles
Browse latest Browse all 12

System.Action delegate ignore parameter?

$
0
0

I have this: public event Action<BaseCommodity> OnGatherActionSelected = delegate { }; gmp.OnGatherActionSelected += m_Worker.CharacterActions.StartGatherMaterials; // << takes a parameter but now i want to use the event to call a method which takes 0 parameters gmp.OnGatherActionSelected += ParentPanel.RedrawUI; // does not take parameters .. DOES NOT WORK :( how can i do this?

The post System.Action delegate ignore parameter? appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 12

Trending Articles