/** * key == 1 -> 强制打开卡通摄像机,并且使卡通摄像机运动. */ public void RestartMovePlayer(int key = 0) { if (key == 1) { Debug.Log("RestartMovePlayer:: key is " + key); IsStartMovePlayerByMark = false; PlayerObj.SetActive(true); PlayerCamera.SetEnableCamera(false); PlayerCamera.SetActiveCamera(true); PlayerCamera.SetEnableCamera(false); } if (!IsHandleRpc) { return; } if (PlayerSt != PlayerTypeEnum.CartoonCamera) { XkGameCtrl.AddPlayerYouLiangToMax(); } if (!XkGameCtrl.GetInstance().IsCartoonShootTest) { if (!IsStopMovePlayer) { return; } } IsStopMovePlayer = false; if (PlayerSt == PlayerTypeEnum.FeiJi) { Debug.Log("RestartMovePlayer -> player " + PlayerSt); } if (ITweenScript != null) { ITweenScript.isRunning = true; } else { MovePlayerByItween(); } }