コード例 #1
0
        internal void Apply(Transform parent, LightSetting lightSetting, List <string> audioClips)
        {
            FizzleScene.Camera.GetComponent <Skybox>().material = lightSetting.Skybox;
            RenderSettings.ambientLight     = lightSetting.AmbientLightColor.Replace(a: byte.MaxValue);
            RenderSettings.ambientIntensity = lightSetting.AmbientLightIntensity;
            Light light = FizzleBehaviour.Spawn(lightPrefab, parent, "light");

            light.color     = lightSetting.DirectionalLightColor.Replace(a: byte.MaxValue);
            light.intensity = lightSetting.DirectionalLightIntensity;
            FizzleScene.StartOneCoroutine(PlayClip(parent.gameObject.GetComponent <AudioSource>(), audioClips));
        }
コード例 #2
0
        private static IEnumerator InternalLoadLevel(int index)
        {
            TimeCtrl.timeControllerEnabled    = false;
            FirstPersonCtrl.controllerEnabled = false;
            yield return(FizzleView.FadeOut());

            FizzleScene scene = GetInstance();

            scene.index = index % scene.sceneInfos.Count;
            scene.LoadLevel(scene.index);
            scene.Start();
            yield return(FizzleView.FadeIn());

            TimeCtrl.timeControllerEnabled    = true;
            FirstPersonCtrl.controllerEnabled = true;
        }
コード例 #3
0
        internal static IEnumerator LoadNext()
        {
            yield return(new WaitForSeconds(0.2f));

            FizzleScene.LoadNextLevel();
        }