void Awake() { DNC = this.GetComponent <DNC_DayNight>(); DaySource.clip = DayEffect; NightSource.clip = NightEffect; DaySource.Play(); NightSource.Play(); }
void Awake() { DNC = this.GetComponent <DNC_DayNight>(); if (Lights.Count <= 0) { this.enabled = false; } }
void Awake() { m_DNC = GetComponent <DNC_DayNight>(); m_isDay = m_DNC.isDay; }