Do I need to unregister my event even if the instance is destroyed? Will it get cleaned up with the object being destroyed or will there be a memory leak?
void Awake()
{
button.OnClick += ButtonClicked;
}
void OnDestroy()
{
// Is this necessary?
button.OnClick -= ButtonClicked;
}
void ButtonClicked()
{
// Do stuff
}