Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Patrax

Pages: [1]
1
NGUI 3 Support / Re: UIButton OnClick Subscribe Method + Arguments
« on: March 21, 2015, 03:55:48 PM »
Thank you! I really was so close :) haha.

2
NGUI 3 Support / UIButton OnClick Subscribe Method + Arguments
« on: March 20, 2015, 06:40:16 PM »
Much like this thread: http://www.tasharen.com/forum/index.php?topic=7552.0
But, need to subscribe the function plus the argument at runtime. How?

Currently setting it up this way:
  1. EventDelegate ed = new EventDelegate ();
  2. ed.Set (this,"NameOfFunction");
  3. go.GetComponentInChildren<UIButton> ().onClick.Add (ed);

This works, but I still haven't found the way to attach parameters.

Pages: [1]