예제 #1
0
    // Use this for initialization
    void Start()
    {
        _characterRoster = new CharacterRoster();

        timeAffectedObjects = new List <iAffectedByTime>();
        _characterFactory   = new AICharacterFactory(monoPool);

        characterDisplay.InitCharacterDisplay();

        actionMenu.onButtonClick = UpdateCharacterDisplay;

        _mapGenerator.SetGm(this);
        _gameMap = _mapGenerator.generateMap();

        _EndOfDayPannel.Init(_characterRoster, _gameMap);
        _EndOfDayPannel.startNextDay += StartDay;
        _EndOfDayPannel.SetUpNexDay();

        this.CameraController.Init(_gameMap.GetTileAtRowAndColumn(0, 0).gameObject.GetComponent <Collider2D>().bounds.size);

        AddInGameClockToList(_clock);

        SortList();
        EndDay();
    }