// Start is called before the first frame update
 void Start()
 {
     yönetic         = Yönetici.GetComponent <yönetici>();
     audioS          = GetComponent <AudioSource>();
     nav             = GetComponent <NavMeshAgent>();
     animatör        = GetComponent <Animator>();
     başlanğıçKonumu = transform.position;
 }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     audio                      = GetComponent <AudioSource>();
     yemlik_Kontrol             = GameObject.Find("yemlik").GetComponent <yemlik_kontrol>();
     yönetici                   = GameObject.Find("yönetici").GetComponent <yönetici>();
     real_second_per_ingame_day = yönetici.real_second_per_ingame_day;
     nav      = GetComponent <NavMeshAgent>();
     animatör = GetComponent <Animator>();
     player   = GameObject.FindGameObjectWithTag("Player").transform;
     day_ilk  = yönetici.day;
     Canvas.SetActive(false);
     Yaşlanma();
     #region Büyüme
     InvokeRepeating("Yaşlanma", büyüme_tekrarı_süresi, büyüme_tekrarı_süresi);
     #endregion
     AnimasyonSayıcı = Random.Range(13, 18);
 }
Beispiel #3
0
 private void Start()
 {
     yönetici = GameObject.Find("yönetici").GetComponent <yönetici>();
 }
Beispiel #4
0
 // Start is called before the first frame update
 void Start()
 {
     yönetici = GameObject.FindGameObjectWithTag("yönetici").GetComponent <yönetici>();
 }