| | |
| | | using Core.Utilities; |
| | | using DG.Tweening; |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | |
| | | /// </summary> |
| | | public UnityEngine.Camera cachedCamera { get; private set; } |
| | | |
| | | public UnityEngine.Camera backGroundCamera { get; private set; } |
| | | |
| | | public bool bAdjViewPort = false; |
| | | |
| | | public void DOShakePosition(){ |
| | | cachedCamera.DOShakePosition(0.25f, 1.5f, 4); |
| | | backGroundCamera.DOShakePosition(0.25f, 1.5f, 4); |
| | | } |
| | | |
| | | public void adjViewportRect() |
| | | { |
| | |
| | | { |
| | | base.Awake(); |
| | | cachedCamera = GetComponent<UnityEngine.Camera>(); |
| | | backGroundCamera = GameObject.Find("BackCamera").GetComponent<UnityEngine.Camera>(); |
| | | } |
| | | |
| | | // Start is called before the first frame update |