Nanashi-soft○プログラマ専用○Unityでゲーム開発○
void Start() { //移動先の座標を設定 GetComponent<NavMeshAgent>().SetDestination(new Vector3(-4.0f, 0.0f, 4.0f)); }