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; }
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; }