// Start is called before the first frame update void Awake() { targetIntensity = highIntensity; alermOn = false; _instance = this; light = GetComponent <Light>(); }
// Use this for initialization void Start() { _intance = this; _light = GetComponent <Light>(); _light.intensity = 0; targetIntensity = heighIntensity; }
private void Awake() { targetIntensity = endIntensity; _light = GetComponent <Light>(); _instance = this; //alerts = GameObject.FindGameObjectsWithTag("alert"); }
private float m_fTargetIntensity; // 光要变化的目标强度 private void Awake() { m_instance = this; m_light = GetComponent <Light>(); m_fTargetIntensity = m_fHighIntensity; // 先变到最高强度 }