示例#1
0
    /// <summary>
    /// Returns true if game is successfully started,
    /// otherwise returns false.
    /// </summary>
    /// <returns></returns>
    public bool StartGame()
    {
        if (!IsInitialized)
        {
            return(false);
        }

        HexMapDrawer.CreateMap(Options.Map);
        _uiManager.Init();
//		UIManager.VisibleUI = UIManager.GameUI;
//		Active.Buttons = UIManager.UseButtons;
        MainCameraController.Instance.Init();
        UI.CharacterUI.Abilities.Instance.Init();
        _uiManager.UpdateActivePhaseText();
        TakeTurns();
        LogGameStart();
        if (GameStarter.Instance.IsTesting || SessionSettings.Instance.GetDropdownSetting(SettingType.PickType) == 2)
        {
            PlaceAllCharactersOnSpawns();                                                                                                                   //testing or all random
        }
        if (IsReplay)
        {
            MakeGameLogActions();
        }
        return(true);
    }
示例#2
0
    /// <summary>
    /// Returns true if game is successfully started,
    /// otherwise returns false.
    /// </summary>
    /// <returns></returns>
    public bool StartGame()
    {
        if (!IsInitialized)
        {
            return(false);
        }

        HexMapDrawer.CreateMap(_options.Map);
        UIManager.Init();
        UIManager.VisibleUI = UIManager.GameUI;
        Active.Buttons      = UIManager.UseButtons;
        MainCameraController.Instance.Init();
        CharacterAbilities.Instance.Init();
        UIManager.UpdateActivePhaseText();
        if (GameStarter.Instance.IsTesting)
        {
            PlaceAllCharactersOnSpawns();
        }
        TakeTurns();
        return(true);
    }