// Use this for initialization void Start() { sliderManager = GameObject.Find("Slider").GetComponent <SliderManager>(); readAIM = GameObject.FindGameObjectWithTag("Manager").GetComponent <ReadAIMFile>(); totalNumberOfFrames = (int)sliderManager.thisSlider.maxValue; myImage = GetComponent <Image>(); }
// Use this for initialization void Start() { textToSpeech = GameObject.Find("Audio Manager").GetComponent <TextToSpeech>(); bigImage = GetComponent <BigImage>(); readAIM = GameObject.FindGameObjectWithTag("Manager").GetComponent <ReadAIMFile>(); values = readAIM.Values; //allImagesForFrames = readAIM.Frames; bigFrameImage = GetComponent <Image>(); maxGraphValue = new float[1024]; minGraphValue = new float[1024]; Debug.Log("CreateGraph Start!"); foreach (var frame in values) { Debug.Log(frame[500]); int i = 0; foreach (var point in frame) { if (point > maxGraphValue[i]) { maxGraphValue[i] = point; } else if (point < minGraphValue[i]) { minGraphValue[i] = point; } i++; } } }
// Use this for initialization void Start() { textToSpeech = GameObject.Find("Audio Manager").GetComponent <TextToSpeech>(); bigImage = GetComponent <BigImage>(); readAIM = GameObject.FindGameObjectWithTag("Manager").GetComponent <ReadAIMFile>(); allImagesForFrames = readAIM.Frames; bigFrameImage = GetComponent <Image>(); //string text = "some text to say...."; //textToSpeech.StartSpeaking(text); //textToSpeech.StopSpeaking(); }
void Start() { readAIM = GameObject.FindGameObjectWithTag("Manager").GetComponent <ReadAIMFile>(); allImagesForFrames = readAIM.Frames; thisSlider.maxValue = allImagesForFrames.Count - 10; // there are 10 small frames, so we need to subtract 10 starting frames smallFramesImages = new Image[10]; int i = 0; Debug.Log("number of smallframes = " + smallFramesGameObjects.Length); foreach (var sFrame in smallFramesGameObjects) { Debug.Log(smallFramesGameObjects[i].name); smallFramesImages[i] = sFrame.GetComponent <Image>(); smallFramesImages[i].sprite = Sprite.Create(allImagesForFrames[i], new Rect(0, 0, 32, 32), new Vector2()); i++; } }