예제 #1
0
    public void Initialize(uint difficulty)
    {
        currentDate = new System.DateTime(startYear, startMonth, 1);
        progress    = 0.0f;

        goalCell = Grid.grid.GetRandomCellID(1, 1);

        workPlan    = new WorkPlan();
        finances    = new Finances();
        simParam    = new SimulationParameters(difficulty);
        statEffects = new StatusEffects();

        onNewDay = null;

        // dayEvents = new List<ScenarioEvent>();
        // nightEvents = new List<ScenarioEvent>();

        StopAllCoroutines();
        workingAnimation = null;
        workingProcess   = null;
        nightProcess     = null;
        nightAnimation   = null;
        helperCounter    = 0;
        helperCounter2   = 0;

        workPlan.SetExcavationArea(Grid.grid.GetRandomCellID(), ControlManager.minVizFieldRadius);
    }