コード例 #1
0
    private IEnumerator MoveTo()
    {
        while (canRun)
        {
            yield return(new WaitForFixedUpdate());

            transform.position = Vector3.Lerp(transform.position, GetComponentInParent.position, Speed.Value());
        }

        transform.parent = GetComponentInParent();
    }