Hi,
Congratulations on the release of Winward!
I need to bother you asking for help with a certain issue
I have a NGUI menu which is supposed to move on click. Its composed of 7 panels which act as buttons, as they have colliders and a script with an OnClick function. They also have TweenPosition components, deactivated from start, and activated on click.
// This goes in the OnClick function of every panel
foreach(GameObject obj in panelsArray) {
TweenPosition tweenpos = obj.GetComponent<TweenPosition>();
tweenpos.from = obj.transform.localPosition;
tweenpos
.to = new Vector3
(obj
.transform.localPosition.x-735, obj
.transform.localPosition.y, obj
.transform.localPosition.z); tweenpos.Play(true);
}
I made this to slide all panels 735 pixels left every time I click any of them. The problem is it only tweens once, after that, when I click on them they only reposition without sliding.
Thanks in advance!
Luis