public void OpenInfoWindow() { if (charShowCamTrans == null) { charShowCamTrans = GameObject.FindWithTag("charShowCam").transform; } // 设置人物展示相机相对位置 charShowCamTrans.position = playerCtrl.transform.position + playerCtrl.transform.forward * 3.8f + new Vector3(0, 1.2f, 0); charShowCamTrans.localEulerAngles = new Vector3(0f, 180f + playerCtrl.transform.localEulerAngles.y, 0f); charShowCamTrans.gameObject.SetActive(true); infoWindow.SetWindowState(true); }