| | |
| | | |
| | | public bool bAdjViewPort = false; |
| | | |
| | | public void DOShakePosition(){ |
| | | public void DOShakePosition() |
| | | { |
| | | cachedCamera.DOShakePosition(0.25f, 1.5f, 4); |
| | | backGroundCamera.DOShakePosition(0.25f, 1.5f, 4); |
| | | } |
| | |
| | | //bAdjViewPort = true; |
| | | } |
| | | |
| | | |
| | | |
| | | protected override void Awake() |
| | | { |
| | | base.Awake(); |
| | |
| | | { |
| | | // 初始化的时候调整视口就OK了. |
| | | this.adjViewportRect(); |
| | | Application.targetFrameRate = 60; |
| | | } |
| | | |
| | | // Update is called once per frame |
| | | void Update() |
| | | { |
| | | this.adjViewportRect(); |
| | | Application.targetFrameRate = 60; |
| | | //this.adjViewportRect(); |
| | | //Application.targetFrameRate = 60; |
| | | } |
| | | } |