Example #1
0
 // Use this for initialization
 void Start()
 {
     fullscreenSelectionUI = GameObject.Find("FullscreenSelectionUI").GetComponent<FullscreenSelectionUI>();
 }
Example #2
0
    void Awake()
    {
        model = transform.parent.GetComponent<SpriteModel> ();
        movie = GetComponent<AVProQuickTimeMovie> ();
        billboardRenderer = GetComponent<Renderer>();
        movie._folder = model.videoFolderPath;
        movie._filename = model.videoFileName;
        currentVideoType = VideoType.None;

        fullscreenSelectionUI = GameObject.Find("FullscreenSelectionUI").GetComponent<FullscreenSelectionUI>();
        prevFrameCount = 0;
        isPlaying = false;
        nextFrameTimer = new Timer(1f / 20f);
    }