Beispiel #1
0
 public void DeSpawnThaiWoman()
 {
     cam.transform.SetParent(transform.root);
     PostCameraMoveCallback = null;
     StartCoroutine(MoveCamera(cameraPos2, cameraLerpTime, 0f));
     Destroy(thaiWoman);
     thaiWoman = null;
 }
Beispiel #2
0
    public void SpawnThaiWoman()
    {
        if (!thaiWoman)
        {
            thaiWoman      = GameObject.Instantiate(_thaiWoman, new Vector3(12.2f, 1.0f, 134.6f), Quaternion.identity);
            thaiWoman.name = "thai_woman";


            GameObject followPos = thaiWoman.transform.Find("FollowCamera").gameObject;
            followPos.transform.LookAt(thaiWoman.transform);
            cam.transform.SetParent(thaiWoman.transform);
            StartCoroutine(MoveCamera(followPos, 1f, 0f));
            PostCameraMoveCallback = AnimateThaiWoman;
        }
    }
Beispiel #3
0
 private void SetCamera()
 {
     cam.transform.position = new Vector3(5.7f, 38.6f, -22.2f);
     cam.transform.rotation = Quaternion.Euler(45f, 0f, 0f);
     cam.orthographic       = false;
     cam.fieldOfView        = 60f;
     cam.nearClipPlane      = 0.3f;
     cam.farClipPlane       = 300;
     cameraPos2.transform.LookAt(tuktuk.transform);
     if (gc && gc.PlayerLastLevel >= 19)
     {
         PostCameraMoveCallback = null;
         StartCoroutine(MoveCamera(cameraPos2, cameraLerpTime, 2f));
     }
 }