前提・実現したいこと
Unityで"Vector3.MoveTowards"を使って移動させたい。
発生している問題・エラーメッセージ
スクリプトを適用して実行しても全く動きません。原因がわかる方ご教授お願いします。
該当のソースコード
C#
1using System.Collections; 2using System.Collections.Generic; 3using UnityEngine; 4 5public class EnemyController : MonoBehaviour 6{ 7 Vector3 target = new Vector3(38, 0, 34); 8 9 // Update is called once per frame 10 void Update() 11 { 12 Vector3.MoveTowards(transform.position, target, Time.deltaTime); 13 } 14} 15

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。