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(); }
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(); }
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); }
public void SetInfo(int IDBot, GovernmentBase gov) { this.IDBot = IDBot; this.gov = gov; }