// Use this for initialization private void Awake () { _isDay = true; _SacrificeManager = this.GetComponent<SacrificeManager>(); gameManager = FindObjectOfType<GameManager>().GetComponent<GameManager>(); }
private void Awake() { // Get Component _SacrificeManager = GameObject.FindGameObjectWithTag("DataManager").GetComponent<SacrificeManager>(); _ResourceManager = GameObject.FindGameObjectWithTag("DataManager").GetComponent<ResourceManager>(); _DayManager = GameObject.FindGameObjectWithTag("DataManager").GetComponent<DayControll.DayManager>(); }
// Use this for initialization private void Awake() { _SacrifceManager = GameObject.FindGameObjectWithTag("DataManager").GetComponent<SacrificeManager>(); }