// Use this for initialization private void Start() { _DayManager = GameObject.FindGameObjectWithTag("DataManager").GetComponent<DayManager>(); _MaximumIntensity = this.GetComponent<VignetteAndChromaticAberration>().intensity; this.GetComponent<VignetteAndChromaticAberration>().intensity = 0.0f; }
// Use this for initialization public void Awake() { // Get Component _DayManager = GameObject.FindObjectOfType<DayManager>().GetComponent<DayManager>(); // Get Property _isDay = _DayManager._isDay; }
private void Awake() { // Setting Loop _AudioSource.loop = true; _AudioSource.clip = _DayMusic; _AudioSource.Play(); // Get Component _DayManager = GameObject.FindGameObjectWithTag("DataManager").GetComponent<DayControll.DayManager>(); }
// Use this for initialization private void Awake() { _DayManager = GameObject.FindGameObjectWithTag("DataManager").GetComponent<DayManager>(); this.GetComponent<Text>().text = _DayManager._PassedDay.ToString(); }
// Use this for initialization private void Awake() { // Get Component _DayManager = GameObject.FindGameObjectWithTag("DataManager").GetComponent<DayManager>(); sacrificeManager = GameObject.FindGameObjectWithTag("DataManager").GetComponent<SacrificeContoll.SacrificeManager>(); }
// Use this for initialization private void Awake() { // Get Component _DayManager = GameObject.FindGameObjectWithTag("DataManager").GetComponent<DayManager>(); }
// Use this for initialization public void Start() { // Get Component _DayManager = GameObject.FindGameObjectWithTag("DataManager").GetComponent<DayManager>(); }
void Awake() { dayManager = FindObjectOfType<DayControll.DayManager>().GetComponent<DayControll.DayManager>(); }