Author Topic: Combine actions of 2 buttons into 1 button  (Read 2522 times)

badnews

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Combine actions of 2 buttons into 1 button
« on: January 14, 2015, 01:52:36 PM »
So I had to redesign my UI and now am running into some problems.
I have 2 buttons that each have complicated events on down and up presses and when you press them both at the same time, it performs what I want I want perfectly.
After having to redesign my UI, it is now extremely hard to press both buttons at the same time.
So what I want to do is make a brand new button that will simulate as if I pressed both of the 2 original buttons at the same time.
Is there any easy way of going about this?
I'm using the "NGUI Events To Playmaker Fsm Events" script, and each of the 2 buttons have quite a few FSMs doing different actions for the player movement.
I'm hoping there is an easy solution where i can just have a new button simulate pressing down both of the originals.
Thanks for your time and making such an awesome package!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Combine actions of 2 buttons into 1 button
« Reply #1 on: January 14, 2015, 10:07:28 PM »
You can have multiple UIButton scripts on the same collider.