Base de fótons de unidade Onenable
public override void OnEnable()
{
base.OnEnable();
//your stuff here
}
Jesús Angarita
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