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