Ejemplo n.º 1
0
    // [SerializeField] private NotificationRequester _abstractRequester;

    void Start()
    {
        DepartmentsDesignationController depController = new DepartmentsDesignationController(); // is it correct?

        _gameState = GameStates.START_PREPARATION_IN_PROCESS;
        _gameOverWithNotification.OnEventRaised += GameOver;
        _onGameStartPreparing?.Invoke();
    }
Ejemplo n.º 2
0
    //***//

    private void Init()
    {
        if (_initialized)
        {
            return;
        }
        _departments = _departments.OrderBy(x => x.OrderNumber).ToList();
        foreach (Department dep in _departments)
        {
            DepartmentDesignation dd = DepartmentsDesignationController.CreateDesignation(dep.OrderNumber);
            dep.InitDepartment(dd, _generalParameters.startDepartmentTimeRateNorm);
        }
        _initialized = true;
    }