コード例 #1
0
    // Use this for initialization
    // Update is called once per frame

    public void Play()
    {
        //ShowRandomImage();

        GetComponent <AudioSource>().clip = cortinillaIn;
        Vector3 pos = transform.position;

        pos.x = -0.6f;
        transform.position = pos;
        if (ifcOpciones.fx)
        {
            GetComponent <AudioSource>().Play();
        }
        SuperTweener.Flush();
        ifcMusica.instance.musicOff(0.25f);
        new SuperTweener.move(gameObject, 0.25f, new Vector3(0.5f, 0.5f, 50f), SuperTweener.CubicOut, (_target) =>
        {
            Application.LoadLevel("unload");
            System.GC.Collect();
            Resources.UnloadUnusedAssets();
            new SuperTweener.move(gameObject, 1.0f, new Vector3(0.5f, 0.5f, 50f), null, (_target2) =>
            {
                Application.LoadLevel("BBVAKicks");
                new SuperTweener.move(gameObject, 1.0f, new Vector3(0.5f, 0.5f, 50f), null, (_target5) =>
                {
                    new SuperTweener.move(gameObject, 0.25f, new Vector3(2.0f, 0.5f, 50f), SuperTweener.CubicIn, (_target3) =>
                    {
                        GetComponent <AudioSource>().clip = cortinillaOut;
                        if (ifcOpciones.fx)
                        {
                            GetComponent <AudioSource>().Play();
                        }
                        if (GameplayService.networked)
                        {
                            MsgPlayerReady msg = Shark.instance.mensaje <MsgPlayerReady>();
                            msg.send();
                        }
                        m_imgPublicidad.gameObject.GetComponent <ImagenCortinilla>().Reload();
                    });
                });
            });
        });
    }
コード例 #2
0
 public void goToMenu()
 {
     SuperTweener.Flush();
     Cortinilla.instance.Return();
 }