void Start() { frameCount = 0; // begin at frame 0 batchStep = 0; // begin batch step at 0 waiting = false; // we are not waiting by default // grab the image component for the background and set up the lists background = GetComponent <Image>(); textHandlerObjects = new List <GameObject>(); textHandlers = new List <CutsceneTextObject>(); activeTextData = new Queue <CutsceneTextData>(); // grab the Fading component and load a texture called "Black Background" fader = gameObject.AddComponent <Fading>(); fader.LoadTexture("Black Background"); SetUpCurrentFrame(); // set up the current frame (in this case, 0) }