Page 1 of 1

Behaviors

Posted: Mon Sep 29, 2014 3:53 am
by maxs
Where can I see an example of a behavior button that works?

I can't get mine to work.

Re: Behaviors

Posted: Mon Sep 29, 2014 5:47 am
by Simon
Hi maxs,
Check the script of btn Follower
Nuthin in it right, but an empty on mouseUp
But press it.

Now change the answer in btn Leader
What happens now when you press btn Follower?

In the inspector of btn Follower check out the behavior box.

Simon

Re: Behaviors

Posted: Mon Sep 29, 2014 6:46 am
by maxs
Hurray

It works. Thanks Simon.

Re: Behaviors

Posted: Mon Sep 29, 2014 7:13 am
by Simon
Hi maxs,
It gets way crazier then the example I posted.
Button Leader can have it's behavior set to another btn, and they all follow the... ummm leaders leader.
And btn Leader can be applied to other controls.

Simon

Re: Behaviors

Posted: Mon Sep 29, 2014 2:29 pm
by FourthWorld
...and you can reassign behaviors at runtime if you need to.