| | |
| | | |
| | | public bool bAdjViewPort = false; |
| | | |
| | | public void DOShakePosition(){ |
| | | cachedCamera.DOShakePosition(0.25f, 1.5f, 4); |
| | | public void DOShakePosition() |
| | | { |
| | | KTGMGemClient.GameConfig.IsShaking = true; |
| | | cachedCamera.DOShakePosition(0.25f, 1.5f, 4).OnComplete(() => |
| | | { |
| | | KTGMGemClient.GameConfig.IsShaking = false; |
| | | }); |
| | | backGroundCamera.DOShakePosition(0.25f, 1.5f, 4); |
| | | } |
| | | |
| | | |
| | | |
| | | public void adjViewportRect() |
| | | { |
| | |
| | | //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; |
| | | } |
| | | } |