IEnumerator camAnim(Vector3 _rot, Vector3 _pos, TOGGLE_STATES _state) { current = TOGGLE_STATES.TWEENING; renderCamera.transform.DOLocalRotate(_rot, 1f); renderCamera.transform.DOLocalMove(_pos, 1f); yield return(new WaitForSeconds(1f)); current = _state; }
void Start() { current = TOGGLE_STATES.PERSPECTIVE; }