// Use this for initialization
 void Start()
 {
     faceChanger = GetComponent <FaceChanger> ();
     if (faceChanger != null)
     {
         StartCoroutine("randomChange");
     }
 }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     agent      = GetComponent <NavMeshAgent>();
     anim       = GetComponentInChildren <Animator>();
     spawnPoint = transform.position;
     face       = GetComponentInChildren <FaceChanger>();
     source     = GetComponentInChildren <AudioSource>();
 }
    void Start()
    {
        _UICon = GameObject.Find("UIController").GetComponent <UIController>();
        if (_UICon == null)
        {
            Debug.Log("Can't find UIController.");
            return;
        }

        //_utcFaceChanger = GameObject.Find("UTC").GetComponent<FaceChanger>();
        _utcFaceChanger = GameObject.Find("UTC_Face").GetComponent <FaceChanger>();
        if (_utcFaceChanger == null)
        {
            Debug.Log("Can't find utc.");
            return;
        }
    }
Beispiel #4
0
 // Start is called before the first frame update
 void Start()
 {
     faceChanger = face.GetComponent <FaceChanger>();
     rain2D      = maincamera.GetComponent <Rain2D>();
 }