コード例 #1
0
 void Awake()
 {
     DNC              = this.GetComponent <DNC_DayNight>();
     DaySource.clip   = DayEffect;
     NightSource.clip = NightEffect;
     DaySource.Play();
     NightSource.Play();
 }
コード例 #2
0
 void Awake()
 {
     DNC = this.GetComponent <DNC_DayNight>();
     if (Lights.Count <= 0)
     {
         this.enabled = false;
     }
 }
コード例 #3
0
 void Awake()
 {
     m_DNC   = GetComponent <DNC_DayNight>();
     m_isDay = m_DNC.isDay;
 }