• Register

This member has provided no bio about themself...

Comment History
Symyon
Symyon - - 1 comments @ Delegates, Events and Singletons with Unity3D – C#

Yes, best way is to use OnEnable/OnDisable:

void OnEnable
{
Clicker.Instance.OnClick += OnClick;
}

void OnDisable
{
Clicker.Instance.OnClick -= OnClick;
}

Good karma+1 vote