protected bool InitSceneEdge() { sceneCameraParams = sceneCameraParams ?? GameSceneCamera.GetComponent <SceneCameraParams>(); if (sceneCameraParams && this.m_needResetCamera) { this.m_needResetCamera = false; //sceneCameraParams = GameSceneCamera.GetComponent<SceneCameraParams>(); this.transform.LookAt(sceneCameraParams.SceneCenterTransform); this.m_targetEulerAngle = transform.rotation.eulerAngles; return(true); } return(false); }
public void SetSceneCameraParam(SceneCameraParams cameraParams) { this.sceneCameraParams = cameraParams; }