/** * key == 1 -> 强制打开卡通摄像机,并且使卡通摄像机运动. */ public void RestartMovePlayer(int key = 0) { if (key == 1) { Debug.Log("Unity:" + "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("Unity:" + "RestartMovePlayer -> player " + PlayerSt); if (XkGameCtrl.GetInstance() != null && XkGameCtrl.GetInstance().m_GameUICom != null) { XkGameCtrl.GetInstance().m_GameUICom.ShowGameFuHuoCiShiInfo(); } } if (ITweenScript != null) { ITweenScript.isRunning = true; } else { MovePlayerByItween(); } }