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