Support => NGUI 3 Support => Topic started by: jessekirbs on June 17, 2014, 05:58:41 PM
Title: NGUI Button Teleport Player
Post by: jessekirbs on June 17, 2014, 05:58:41 PM
Looked around and couldn't find an answer to this... How can I make an NGUI button teleport the player to a new location? Thanks!
Title: Re: NGUI Button Teleport Player
Post by: ArenMook on June 18, 2014, 05:00:35 PM
void OnClick()
{
Debug.Log("Teleport me");
}
Title: Re: NGUI Button Teleport Player
Post by: jessekirbs on June 25, 2014, 12:20:02 PM
Sorry... I'm confused. Wouldn't this require a "transform.position" line?
Title: Re: NGUI Button Teleport Player
Post by: ArenMook on June 26, 2014, 09:48:30 AM
Sure, if you want it to teleport to a specific location. The code I pasted shows how to respond to a click. What you do with it is up to you. Beyond this it's not an NGUI question.
Title: Re: NGUI Button Teleport Player
Post by: jessekirbs on July 11, 2014, 01:48:45 PM