예제 #1
0
    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;
    }
예제 #2
0
    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;
    }