コード例 #1
0
    private IEnumerator StartMovement(Vector3 toWhere, Quaternion?rotation)
    {
        fadeEffect.fadeTime = fadeTime;
        fadeEffect.StartFadeOut();
        yield return(new WaitForSeconds(fadeTime + 0.1f));

        transform.position = toWhere;
        if (rotation.HasValue)
        {
            transform.rotation = rotation.Value;
        }
    }