QFramework.LuaMain.AddClick C# (CSharp) Method

AddClick() public static method

public static AddClick ( GameObject go, LuaFunction luafunc ) : void
go UnityEngine.GameObject
luafunc LuaInterface.LuaFunction
return void
		public static void AddClick(GameObject go, LuaFunction luafunc) {
			if (go == null || luafunc == null) return;
			go.GetComponent<Button>().onClick.AddListener(
				delegate() {
					luafunc.Call(go);
				}
			);
		}
		public static void RemoveClick(GameObject go) {