Lighting will change when the player pass through a portal.
How do I set a custom color like 8DB3CC, FFFFFF ?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class whiteout_bunker_enter : MonoBehaviour {
public GameObject snow;
public GameObject fog;
public GameObject triggero;
public GameObject triggerx;
public GameObject level;
AudioSource audioSource;
// Use this for initialization
void Start () {
audioSource = level.GetComponent<AudioSource>();
}
// Update is called once per frame
void OnTriggerEnter(Collider other) {
audioSource.pitch = -0.57f;
RenderSettings.fog = false;
RenderSettings.ambientEquatorColor = Color.white;
RenderSettings.ambientSkyColor = Color.white;
RenderSettings.ambientGroundColor = Color.white;
snow.active=false;
fog.active=false;
triggero.active=false;
triggerx.active=true;
}
}
