Esempio n. 1
0
    //перемещение верхней камеры
    public void moveOrtoCamera(Vector3 pos)
    {
        if (_cameraMove == null)
        {
            _cameraMove = GameObject.Find("/GameObject").GetComponent <CameraMove>();
        }

        targetPos = new Vector3(pos.x, _cameraMove.GetMinHeight(), pos.z);
        StartCoroutine(moveTopCamera());
    }