private void StopVideo() { foreach (GameObject VidPlayBtn in VidPlayButtons) { VidPlayBtn.SetActive(false); } foreach (GameObject v in Videos) { v.SetActive(false); } Videos[0].SetActive(true); VidPlayButtons[0].SetActive(false); }
private void DisplayVideoData() { foreach (GameObject VidPlayBtn in VidPlayButtons) { VidPlayBtn.SetActive(false); } foreach (GameObject v in Videos) { if (v == Videos[counter]) { v.SetActive(true); VidPlayButtons[counter].SetActive(true); } else { v.SetActive(false); } } }