Пример #1
0
 public void setGoverment(int id, GovernmentBase govBase)
 {
     goverments [id] = govBase;
     MapInfo.current.govNames [id]       = govBase.GetName();
     MapInfo.current.governments [id, 0] = govBase.GetMoney();
     MapInfo.current.governments [id, 1] = govBase.GetIron();
     MapInfo.current.governments [id, 2] = govBase.GetOil();
 }
Пример #2
0
 public void LoadGoverments()
 {
     for (int i = 0; i < MapInfo.current.playerCount + 1; i++)
     {
         goverments [i] = new GovernmentBase(i, MapInfo.current.govNames [i], MapInfo.current.governments [i, 0], MapInfo.current.governments [i, 1], MapInfo.current.governments [i, 2]);
     }
     gayMenu.GetParametrs();
 }
Пример #3
0
    void Start()
    {
        goverments = new GovernmentBase[MapInfo.current.playerCount + 1];
        gayMenu    = gameObject.GetComponent <GameMenu> ();
        for (int i = 0; i < MapInfo.current.playerCount + 1; i++)
        {
            goverments [i] = new GovernmentBase(i);
        }

        mm.setGameController(this);
    }
Пример #4
0
 public void SetInfo(int IDBot, GovernmentBase gov)
 {
     this.IDBot = IDBot;
     this.gov   = gov;
 }