I have some classes based on NGUI ones from V3.03 and I'm getting this error when upgrading the project to the latest NGUI:
Assets/Scripts/Gen/MyUIButton.cs(52,30): error CS0507: `MyUIButton.OnHover(bool)': cannot change access modifiers when overriding `protected' inherited member `UIButtonColor.OnHover(bool)'
This is the lines of code in question:
public override void OnHover (bool isOver) { if (isEnabled) base.OnHover(isOver); }
public override void OnPress(bool isPressed) { if(isEnabled) base.OnPress(isPressed); Send(); }
How do I change them to work on the latest version of NGUI?