UnregisterEvents functions do not need to be public
This commit is contained in:
@@ -32,7 +32,7 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic
|
|||||||
ingameRoot.GetWidget<ChatDisplayWidget>("CHAT_DISPLAY").AddLine(c, from, text);
|
ingameRoot.GetWidget<ChatDisplayWidget>("CHAT_DISPLAY").AddLine(c, from, text);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void UnregisterEvents()
|
void UnregisterEvents()
|
||||||
{
|
{
|
||||||
Game.AddChatLine -= AddChatLine;
|
Game.AddChatLine -= AddChatLine;
|
||||||
Game.BeforeGameStart -= UnregisterEvents;
|
Game.BeforeGameStart -= UnregisterEvents;
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public void UnregisterEvents()
|
void UnregisterEvents()
|
||||||
{
|
{
|
||||||
Game.AddChatLine -= AddChatLine;
|
Game.AddChatLine -= AddChatLine;
|
||||||
Game.BeforeGameStart -= UnregisterEvents;
|
Game.BeforeGameStart -= UnregisterEvents;
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
optionsBG.GetWidget<ButtonWidget>("QUIT").OnClick = () => Game.Exit();
|
optionsBG.GetWidget<ButtonWidget>("QUIT").OnClick = () => Game.Exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void UnregisterEvents()
|
void UnregisterEvents()
|
||||||
{
|
{
|
||||||
Game.AddChatLine -= AddChatLine;
|
Game.AddChatLine -= AddChatLine;
|
||||||
Game.BeforeGameStart -= UnregisterEvents;
|
Game.BeforeGameStart -= UnregisterEvents;
|
||||||
|
|||||||
Reference in New Issue
Block a user