コード例 #1
0
 void Start()
 {
     instance_                  = this;
     nav_                       = gameObject.AddComponent <UnityEngine.AI.NavMeshAgent>();
     nav_.acceleration          = 5000;
     nav_.radius                = 0.1f;
     nav_.baseOffset            = 0;
     nav_.angularSpeed          = 360;
     nav_.obstacleAvoidanceType = UnityEngine.AI.ObstacleAvoidanceType.NoObstacleAvoidance;
 }
コード例 #2
0
 void Start()
 {
     instance_                  = this;
     nav_                       = gameObject.AddComponent <UnityEngine.AI.NavMeshAgent>();
     nav_.acceleration          = 5000;
     nav_.radius                = 0.1f;
     nav_.speed                 = 4;
     nav_.stoppingDistance      = 0.2f;
     nav_.angularSpeed          = 360;
     nav_.obstacleAvoidanceType = UnityEngine.AI.ObstacleAvoidanceType.NoObstacleAvoidance;
     nav_.enabled               = false;
 }