Unity+FairyGUI)定义一个回调函数

JoystickModule注册事件

public EventListener onMove { get; private set; }
	public EventListener onEnd { get; private set; }

onMove = new EventListener(this, "onMove");
		onEnd = new EventListener(this, "onEnd");

注册回调

_joystick = new JoystickModule(_mainView);
		_joystick.onMove.Add(__joystickMove);
		_joystick.onEnd.Add(__joystickEnd);


JoystickModule执行回调
this.onEnd.Call();


你可能感兴趣的:(Unity3d,FairyGUI)