private IEnumerator ToGameCoroutine() { var itRotation = Utils.LerpRotate(transform.rotation, Quaternion.identity, 1f); while (itRotation.MoveNext()) { transform.rotation = (Quaternion)itRotation.Current; yield return(null); } ReadyGame?.Invoke(this, EventArgs.Empty); yield break; }
IEnumerator ToGameCoroutine() { var itPosition = Utils.LerpMove(transform.position, gamePosition, CameraTransitionTime, true); while (itPosition.MoveNext()) { transform.position = (Vector3)itPosition.Current; yield return(null); } ReadyGame?.Invoke(this, EventArgs.Empty); yield break; }