Esempio n. 1
0
        public void Initialize()
        {
            Diplomacy.FastClear ();
            for (int i = 0; i < TeamManager.Teams.Count; i++) {
                Team team = TeamManager.Teams[i];
                if (team != this)
                    Diplomacy.AddAt (AllegianceType.Neutral, team.ID);
            }
            TeamManager.UpdateDiplomacy (this);
            this.SetAllegiance (this, AllegianceType.Friendly);

            MainController = new AgentController();
            MainController.JoinTeam (this);
        }
Esempio n. 2
0
        public void Initialize()
        {
            Diplomacy.FastClear();
            for (int i = 0; i < TeamManager.Teams.Count; i++)
            {
                Team team = TeamManager.Teams[i];
                if (team != this)
                {
                    Diplomacy.AddAt(AllegianceType.Neutral, team.ID);
                }
            }
            TeamManager.UpdateDiplomacy(this);
            this.SetAllegiance(this, AllegianceType.Friendly);

            MainController = new AgentController();
            MainController.JoinTeam(this);
        }
Esempio n. 3
0
 public void AddController(AgentController controller)
 {
     controller.JoinTeam(this);
 }
Esempio n. 4
0
 public void AddController(AgentController controller)
 {
     controller.JoinTeam (this);
 }