public void ResetPlayerCameraPos() { //Debug.Log("ResetPlayerCameraPos*********"); IsRestartMove = true; PlayerRestartTime = Time.realtimeSinceStartup; PlayerMvSpeed = 0f; Time.timeScale = 1.0f; if (GlobalData.GetInstance().gameMode == GameMode.SoloMode) { WaterwheelCameraCtrl.GetInstance().ResetPlayerCameraPos(); } else { WaterwheelCameraNetCtrl.GetInstance().ResetPlayerCameraPos(); } CameraShake.IsActiveCamOtherPoint = false; IntoPuBuCtrl.IsIntoPuBu = false; GameCtrlXK.GetInstance().DelayClosePlayerBoxCollider(); }
void Awake() { _Instance = this; float[] distances = new float[32]; for (int i = 0; i < 32; i++) { distances[i] = 400f; } camera.layerCullDistances = distances; bIsAimPlayer = false; Random.seed = (int)(Time.realtimeSinceStartup * 100000f); mCamTran = transform; Screen.showCursor = false; smoothVal = mSmooth * 0.015f; AudioManager.Instance.SetParentTran(transform); SetPlayerGunWaterObjActive(false); MakeCamFollowPlayer(); //test }