예제 #1
0
 private void Awake()
 {
     skyController = this.GetComponent <DySkyController>();
     if (!sunLight)
     {
         this.enabled = false;
         return;
     }
 }
예제 #2
0
 void Start()
 {
     controller   = this.GetComponent <DySkyController>();
     startSeconds = controller.timeline * 3600f;
     curSeconds   = startSeconds;
 }
예제 #3
0
 private void OnEnable()
 {
     controller = this.target as DySkyController;
 }
예제 #4
0
 private void Awake()
 {
     skyController = this.GetComponent <DySkyController>();
 }