Esempio n. 1
0
    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;
    }
Esempio n. 2
0
 void Start()
 {
     current = TOGGLE_STATES.PERSPECTIVE;
 }