Esempio n. 1
0
    void Update()
    {
        if (counting)
        {
            counter   += (Time.deltaTime / 60);
            sceneCount = sceneInfo.GetSceneCount();
            if (counter > sceneInfo.time / (float)(sceneCount))// || Input.GetButtonDown("Fire1"))
            {
                int s = sceneInfo.GetNextScene();
                SwitchScene(s);
            }
        }

        //if (indicators.Length == 0)
        //{
        //    indicators = Resources.FindObjectsOfTypeAll(typeof(ButtonIndicator)) as ButtonIndicator[];

        //    //for (int i = 0; i < indicators.Length; i++)
        //    //{
        //    //    //print("indicators: " + indicators[i].gameObject.name);
        //    //    if (indicators[i].gameObject.name == WithWithoutVO)
        //    //        VOIntroIndicators.Add(indicators[i].GetComponent<ButtonIndicator>());
        //    //}
        //}
        //volume = new Vector2(
        //   Mathf.Lerp(volume.x, sceneInfo.mainVolume, Time.deltaTime),
        //   Mathf.Lerp(volume.y, sceneInfo.ambientVolume, Time.deltaTime)
        //   );
        //if (sceneInfo.useVO && sceneInfo.sceneNames[sceneInfo.whichScene] != "MenuWithUI" &&
        //    sceneInfo.useVO && sceneInfo.sceneNames[sceneInfo.whichScene] != "MenuMaster" &&
        //    sceneInfo.sceneNames[sceneInfo.whichScene] != "Loading" &&
        //    !fading)
        //{

        //    SetMixerVolume(volume.x, volume.y);
        //}
    }