// Use this for initialization void Awake() { controller = GameObject.Find("Day and Night Controller").GetComponent <DayAndNightControl> (); }
void Start() { player = FindObjectOfType <Character>(); dayAndNightControl = GameObject.Find("Day and Night Controller").GetComponent <DayAndNightControl>(); playerAnimator = player.GetComponent <Animator>(); }
public TimeManager() { _dayNightController = GameObject.FindObjectOfType <DayAndNightControl>(); }