コード例 #1
0
 public void StillHere()
 {
     StartCoroutine(Mooindo.ShowMooindoAsync(FindPlayer(NowPlayer_Id).Mooindo_count, NextTurn));
     --FindPlayer(NowPlayer_Id).Mooindo_count;
     SelectMooindo.SetActive(false);
 }
コード例 #2
0
    void StartRollDiceTurn()
    {
        PlayerCtr nowplayer = FindPlayer(NowPlayer_Id);


        DiceTimeImage.gameObject.SetActive(true);

        if (NowPlayer_Id == My_id)
        {
            RollButton.gameObject.SetActive(true);
        }

        if (FindPlayer(NowPlayer_Id).Mooindo_count != 0)
        {
            DiceTimeImage.gameObject.SetActive(false);
            RollButton.gameObject.SetActive(false);
            if (nowplayer.Escape)
            {
                if (nowplayer.GetType() == typeof(AI))
                {
                    EscapeMooindo(nowplayer);
                }
                else
                {
                    state = GameState.SelectUI;
                    SelectMooindo.SetActive(true);
                }
            }
            else
            {
                if (--FindPlayer(NowPlayer_Id).Mooindo_count == 0)
                {
                    state = GameState.Roll_Dice_Turn;
                    RollButton.gameObject.SetActive(true);
                    DiceTimeImage.gameObject.SetActive(true);
                    if (nowplayer.GetType() == typeof(AI))
                    {
                        RollButton.gameObject.SetActive(false);
                        DiceTimeImage.gameObject.SetActive(false);
                        RollingDices();
                    }
                    else
                    {
                        StartCoroutine(TimeStop(10));
                    }
                }
                else
                {
                    StartCoroutine(Mooindo.ShowMooindoAsync(FindPlayer(NowPlayer_Id).Mooindo_count, NextTurn));
                }
                return;
            }
        }

        state = GameState.Roll_Dice_Turn;

        if (nowplayer.GetType() == typeof(AI))
        {
            RollingDices();
        }
        else
        {
            StartCoroutine(TimeStop(10));
        }
    }