Beispiel #1
0
    /**
     * key == 1 -> 使主角摄像机依附于父级摄像机并且停止跟踪.
     */
    public void SetPlayerCameraTran(int key = 0)
    {
        PlayerCamera.SetPlayerCameraTran(key);
//		if (PlayerSt == PlayerTypeEnum.TanKe) {
//			if (key == 1 && PaoTaiScript != null) {
//				if (PlayerZhiShengJiScript != null) {
//					Debug.Log("Unity:"+"SetPlayerCameraTran -> fix tanKe info...");
//					Transform tkTran = PlayerZhiShengJiScript.transform;
//					tkTran.parent = transform;
//					tkTran.localPosition = Vector3.zero;
//					tkTran.localEulerAngles = Vector3.zero;
//				}
//				PaoTaiScript.ResetTransformRotation();
//			}
//		}
    }