Hi there. Right, here's some C# code:
...
[SerializeField] private UIEventListener _someButton = null;
protected override void Start(){
_someButton.onClick += SomeButton_onClick;
}
private void SomeButton_onClick( GameObject sender ){
Debug.Log("!!");
}
All of which is MonoBehaviour.
Now, in boo:
...
public L as UIEventListener
def Awake():
L.onClick += Some
def OnDestroy():
L.onClick -= Some
private def Some():
Debug.Log( "!!" )
Aaaand compilation error!
Here:
Operator '+' cannot be used with a left hand side of type 'UIEventListener.VoidDelegate' and a right hand side of type 'callable() as void'.
Is there any way I could make NGUI buttons work with boo, or should I give up on it and search/write other GUI system?