void Start()
    {
        renderer = gameObject.GetComponent (typeof(MeshRenderer)) as MeshRenderer;

        this.anims = new List<MyAnim> ();

        MyAnim open = new MyAnim (renderer, 3.0f, 1.0f / 60.0f);
        open.Add (tex1);

        MyAnim eyes = new MyAnim (renderer, 2.1f, 0.9f);
        eyes.Add (tex2);
        eyes.Add (tex3);

        MyAnim eyes2 = new MyAnim (renderer, 2.1f, 0.9f);
        eyes2.Add (tex4);
        eyes2.Add (tex5);

        MyAnim shadow = new MyAnim (renderer, 3.0f, 1.0f / 60.0f);
        shadow.Add (tex6);

        MyAnim tray = new MyAnim (renderer, 3.0f, 1.0f / 60.0f);
        tray.Add (tex7);

        anims.Add (open);
        anims.Add (eyes);
        anims.Add (eyes2);
        anims.Add (shadow);
        anims.Add (tray);

        fade = (Fade)GameObject.Find ("Camera").GetComponent (typeof(Fade));
        fade.SetState (Fade.State.FadeIn);

        navi = GameObject.Find ("Navi");
        naviX = navi.transform.position.x;
    }
Beispiel #2
0
 void Start()
 {
     //camera = GameObject.Find ("Main Camera");
     fade = (Fade)GameObject.Find ("GUIFade").GetComponent (typeof(Fade));
     fade.SetState (Fade.State.FadeIn);
 }