Exemplo n.º 1
0
    public MainPhase(Participant turnPlayer, Participant enemyPlayer, MainSceneOperation mainSceneQperation, UIActiveManager uIActiveManager, Field field,
                     GameObject turnEndButton, EnemyBehavior enemyBehavior, SceneTransition sceneTransition)
    {
        _turnPlayer         = turnPlayer;
        _enemyPlayer        = enemyPlayer;
        _mainSceneOperation = mainSceneQperation;
        _uiActiveManager    = uIActiveManager;
        _field           = field;
        _enemyBehavior   = enemyBehavior;
        _sceneTransition = sceneTransition;

        _turnEndButton = turnEndButton;


        //敵プレイヤーターン中に表示するテキスト
        if (_turnPlayer.gameObject.tag == ConstantStorehouse.TAG_PLAYER2)
        {
            _uiActiveManager.TextActiveChanger(true, UIActiveManager.TEXT.NOW_ENEMY_TURN);
        }
        else
        {
            _uiActiveManager.TextActiveChanger(false, UIActiveManager.TEXT.NOW_ENEMY_TURN);
        }

        Debug.Log(_turnPlayer.gameObject.tag + "メインフェーズ");


        //デバッグ用
        //debugSquare.On_Card = debugCard;
        //debugCard.transform.position = debugSquare.transform.position;
    }
Exemplo n.º 2
0
    bool _isMulliganed;                 //マリガンを行ったかどうかのフラグ


    //================================================================
    //コンストラクタ
    public PreparePhase(Participant turnPlayer, Participant enemyPlayer, MainSceneOperation mainSceneOperation, UIActiveManager uiActiveManager)
    {
        _turnPlayer         = turnPlayer;
        _enemyPlayer        = enemyPlayer;
        _mainSceneOperation = mainSceneOperation;
        _uiActiveManager    = uiActiveManager;
        _isDrawFinished     = false;
        _isPrepareFinished  = false;
        _isMulliganed       = false;

        Debug.Log("プリペアフェーズ");
    }
Exemplo n.º 3
0
    public EndPhase(Participant turnPlayer, MainSceneOperation mainSceneOperation, UIActiveManager uiActiveManager)
    {
        _turnPlayer         = turnPlayer;
        _mainSceneOperation = mainSceneOperation;
        _uiActiveManager    = uiActiveManager;

        if (_turnPlayer.Hand_Num <= _turnPlayer.Max_Hnad_Num)
        {
            _didHandThrowAway = true;
        }
        else
        {
            _uiActiveManager.TextActiveChanger(true, UIActiveManager.TEXT.HAND_CARD_LIMIT);
        }

        Debug.Log(_turnPlayer.gameObject.tag + "エンドフェーズ");
    }