How to Subscribe more than two method?

Hi,

Let me ask a way to Subscribe more than two method.

I would like to execute two method when a button widget is clicked on screen.
btn.OnClick().Subscribe(method1)
(I try to add another method “method2”, but it causes error…)

I cannot find how to write verse code to execute, so please tell me advise or some reference.

regards,

Can you post a screen shot of the error as the text in the error often helps identify the problem

could you just use a method to call the 2 methods?

btn.OnClick().Subscribe(CallMethods)

CallMethods(Agent:agent):void=
    Method1()
    Method2()

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.