/* Displays the sprite whose name is SPRITEIMAGENAME until the person clicks continue. */ public void DisplayImage(string spriteImageName) { // Find the sprite to change for (int i = 0; i < _images.Length; i++) { if (_images[i].name == spriteImageName) { imageToDisplayThings.GetComponent <Image>().sprite = _images[i]; } } // Activate the Image imageToDisplayThings.SetActive(true); // Create a button so that we can close the image. Button closeImageButton = inkManager.CreateChoiceView("Close Image"); closeImageButton.onClick.AddListener(delegate { CloseImage(); }); activeButton = closeImageButton; }