예제 #1
0
    // Start is called before the first frame update
    IEnumerator Start()
    {
        var startPos = waveConfig.GetPath().GetPathCurves()[0][0].position;

        startPos           = ApplyReverse(startPos);
        startPos           = ApplyOffset(startPos);
        transform.position = startPos;

        do
        {
            yield return(StartCoroutine(FollowPath()));
        }while (waveConfig.GetLooping());
    }