public void AddPhoto(ScoringPicture photo) { Debug.Log("Adding photo " + photo.picture.width + " x " + photo.picture.height + " score: " + photo.GetScore()); Debug.Log("Canvas Renderer : " + photo1Renderer); lastPicture = photo; newImage.color = Color.white; newImage.texture = photo.picture; newPhotoDescription.text = photo.GetFishNames(); newScore.text = "" + photo.GetScore(); }
private void ShowPictures() { if (photo1 != null) { photo1Image.color = Color.white; photo1Image.texture = photo1.picture; photo1Description.text = "Score: " + photo1.GetScore(); } else { photo1Image.color = Color.black; photo1Description.text = "Score: "; } if (photo2 != null) { photo2Image.color = Color.white; photo2Image.texture = photo2.picture; photo2Description.text = "Score: " + photo2.GetScore(); } else { photo2Image.color = Color.black; photo2Description.text = "Score: "; } if (photo3 != null) { photo3Image.color = Color.white; photo3Image.texture = photo3.picture; photo3Description.text = "Score: " + photo3.GetScore(); } else { photo3Image.color = Color.black; photo3Description.text = "Score: "; } }