public override void OnEnable() { base.OnEnable(); //your stuff here }
If you override OnEnable the callbacks are not registered, you have to call base.OnEnable(); in OnEnable. So your code should look like this