Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public void SetSceneCameraParam(SceneCameraParams cameraParams)
 {
     this.sceneCameraParams = cameraParams;
 }