Ejemplo n.º 1
0
 public BoidDefinition(BoidDefinition bp, int id)
 {
     this.position = new Vector2(bp.position.x, bp.position.y);
     this.heading  = bp.heading;
     this.velocity = bp.velocity;
     this.id       = id;
 }
Ejemplo n.º 2
0
 private void Start()
 {
     boidDefinition = new BoidDefinition(transform.position.x, transform.position.y, transform.eulerAngles.z, maxSpeed);
     AgentManager.RegisterAgent(this);
 }