I’m trying to design something where you can click on a game object and an image pops up, but then you can click an arrow and go to the next image, all in one click on the game object. I have this code which pops up a single image, but I want to incorporate more. Any help is appreciated!
var popupTexture : Texture2D;
private var paperPopup : PaperPopup;
function Start () {
paperPopup = FindObjectOfType(PaperPopup);
if (popupTexture == null) {
popupTexture = renderer.material.mainTexture;
}
}
function OnMouseDown () {
paperPopup.Show(this);
}