void Start()
 {
     // Initialize the unit controller.
     this.unitController = this.transform.parent.gameObject.GetComponent<UnitController>();
     this.myTag = this.transform.parent.gameObject.tag;
     if (this.myTag == "Enemy")
     {
         this.enemyTag = "Player";
     }
     else if (this.myTag == "Player")
     {
         this.enemyTag = "Enemy";
     }
     this.agent = new Agent(1.0f, 1.0f);
     this.agent.setTransform(this.transform);
     float s = unitController.getAttackForce();
     this.agent.setStrength(s);
     this.agent.setGroupStrength(s);
     this.agent.setDestination(this.agent.getTransform().position);
 }