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