// Use this for initialization void Start() { steeringBasics = GetComponent<SteeringBasics>(); offsetPursuit = GetComponent<OffsetPursuit>(); separation = GetComponent<Separation>(); sensor = transform.Find("SeparationSensor").GetComponent<NearSensor>(); }
void Start() { steeringBasics = GetComponent <SteeringBasics>(); offsetPursuit = GetComponent <OffsetPursuit>(); separation = GetComponent <Separation>(); sensor = transform.Find("SeparationSensor").GetComponent <NearSensor>(); }
/// <summary> /// Creates a new instance /// </summary> public Behaviors() { Alignment = new Alignment(); Arrive = new Arrive(); Cohesion = new Cohesion(); Evade = new Evade(); Flee = new Flee(); Hide = new Hide(); Interpose = new Interpose(); ObstacleAvoidance = new ObstacleAvoidance(); OffsetPursuit = new OffsetPursuit(); PathFollowing = new PathFollowing(); Pursuit = new Pursuit(); Seek = new Seek(); Separation = new Separation(); WallAvoidance = new WallAvoidance(); Wander = new Wander(); }
/// <summary> /// Creates a new instance /// </summary> public Behaviors() { Alignment = new Alignment(); Arrive = new Arrive(); Cohesion = new Cohesion(); Evade = new Evade(); Flee = new Flee(); Hide = new Hide(); Interpose = new Interpose(); ObstacleAvoidance = new ObstacleAvoidance(); OffsetPursuit = new OffsetPursuit(); PathFollowing = new PathFollowing(); Pursuit = new Pursuit(); Seek = new Seek(); Separation = new Separation(); WallAvoidance = new WallAvoidance(); Wander = new Wander(); }
private void Start() { attack = GetComponent <Attack>(); pursuit = GetComponent <OffsetPursuit>(); wonder = GetComponent <Wonder>(); }