unity addlistener with parameter code example Example: unity addlistener with parameter ButtonNext.onClick.AddListener(delegate{SwitchButtonHandler(1);});