使用したUnityのバージョン:2020.3.30f1
InvokeRepeatingとは一定時間ごとに関数を呼び出す関数です。
実際にオブジェクトの座標を一定時間ごとにDebug.Logで確認するコードを書いてみます。
float start = 1.0f;
float interval = 5.0f;
void Start()
{
InvokeRepeating("Sample", start, interval);
}
void Update()
{
}
void Sample()
{
Vector3 posi = this.transform.position;
Debug.Log(posi);
}