/*
  * Main Communal Election method that does everything needed for the communal election to start
  * (The politician changes etc. happen in EndCommunalElection(); a month after the start)
  */
 public void StartCommunalElection()
 {
     //ELECTION LASTS A MONTH
     communalElectionIsOngoing = true;
     timeManager.gameEventManager.MakeNewEvent(new GameEvent(timeManager.AddDaysToDate(timeManager.GetGameDate(), 30), GameEventTypes.communal_election_end, null, null));
 }
Exemple #2
0
    public void MakeElectionDebug()
    {
        TimeManager timeManager = GameObject.FindGameObjectWithTag("_Manager").GetComponent <TimeManager>();

        timeManager.gameEventManager.MakeNewEvent(new GameEvent(timeManager.AddDaysToDate(timeManager.GetGameDate(), 0), GameEventTypes.communal_election_start, null, null));
    }