Пример #1
0
    void Start()
    {
        traceText      = GameObject.Find("TraceText").GetComponent <TraceText>();
        chapterControl = GameObject.Find("Init").GetComponent <ChapterControl>();

        renderer  = videoScreen.GetComponent <Renderer>();
        currColor = renderer.material.color;
    }
Пример #2
0
    void Start()
    {
        traceText      = GameObject.Find("TraceText").GetComponent <TraceText>();
        chapterControl = GameObject.Find("Init").GetComponent <ChapterControl>();

        this.objects  = Resources.LoadAll("Sequence/Chapter3/BG/" + sequencePath, typeof(Texture));
        this.textures = new Texture[objects.Length];

        for (int i = 0; i < objects.Length; i++)
        {
            this.textures[i] = (Texture)this.objects[i];
        }
    }
Пример #3
0
    void Start()
    {
        traceText      = GameObject.Find("TraceText").GetComponent <TraceText>();
        udpEventModule = GameObject.Find("UDPComm").GetComponent <UDPEventModule>();

        // All Chapters Playback initialize
        videoEvent      = GameObject.Find("Video Player").GetComponent <VideoEvent>();
        sequenceScreen  = GameObject.Find("Sequence Screen");
        imgSqcPlayback  = GameObject.Find("Sequence Screen").GetComponent <ImageSequencePlayback>();
        sceneController = GameObject.Find("Scene Controller").GetComponent <SceneController>();

        StartCoroutine(ChapterInit());
    }
Пример #4
0
    void Start()
    {
        // trace text
        traceText = GameObject.Find("TraceText").GetComponent <TraceText>();

        // Chpater Controller
        chapterControl = GameObject.Find("Init").GetComponent <ChapterControl>();

        // Chapter 2 Controller
        imageSequencePlayback = GameObject.Find("Sequence Screen").GetComponent <ImageSequencePlayback>();

        // Chapter 3 COntroller
        sceneController = GameObject.Find("Scene Controller").GetComponent <SceneController>();
    }
Пример #5
0
    void Start()
    {
        traceText = GameObject.Find("TraceText").GetComponent <TraceText>();

        this.objects  = Resources.LoadAll("Sequence/" + sequencePath, typeof(Texture));
        this.textures = new Texture[objects.Length];

        this.renderer = this.GetComponent <Renderer>();
        currColor     = renderer.material.color;

        maxFrameCounter = objects.Length;

        for (int i = 0; i < objects.Length; i++)
        {
            this.textures[i] = (Texture)this.objects[i];
        }
    }
Пример #6
0
    private GameObject backScene;  // hidden scene

    void Start()
    {
        traceText                 = GameObject.Find("TraceText").GetComponent <TraceText>();
        poemSequencePlayback      = GameObject.Find("Poem Screen").GetComponent <PoemSequencePlayback>();
        alphaSequenceTextureArray = GameObject.Find("BG Alpha Mask").GetComponent <AlpahSequenceTextureArray>();
    }
Пример #7
0
    // Chpater 3.

    void Start()
    {
        traceText      = GameObject.Find("TraceText").GetComponent <TraceText>();
        chapterControl = GameObject.Find("Init").GetComponent <ChapterControl>();
    }