public void Choose_NO()
 {
     GameObject.Find("ChoosePlayer/YES").GetComponent <Button> ().interactable = true;
     ChoosePlayer.SetActive(false);
     CanClick = true;
     if (GameStage == "女巫解药")
     {
         MoveOn();
     }
 }
 // Use this for initialization
 void Start()
 {
     //初始化游戏界面
     CanClick = true;
     ConfigUI.SetActive(false);
     PlayerUI.SetActive(false);
     ChoosePlayer.SetActive(false);
     ShowInfo.SetActive(false);
     ShowPlayer.SetActive(false);
     GameStage = "准备开始";
     GameMode  = "Player";
     GameObject.Find("MainCanvas/NextStage").GetComponent <Button> ().interactable = false;
 }
    void Stage_nvwu_jieyao()
    {
        string text;

        GameStage = "女巫解药";
        if (Toggles [6] == 0)
        {
            MoveOn();
            return;
        }
        text = "女巫请睁眼,";
        ChoosePlayer.SetActive(true);
        CanClick = false;
        //狼人平票
        if (jisha == null)
        {
            GameStatus.GetComponent <Text>().text = "请女巫睁眼,狼人没有杀人,使用解药?";
            GameObject.Find("ChoosePlayer/YES").GetComponent <Button> ().interactable = false;
            return;
        }
        //女巫被杀
        if (jisha == nvwu)
        {
            text += jisha.GetComponent <PlayerCard> ().PlayerID.ToString() + jisha.GetComponent <PlayerCard> ().Name + "被杀了,不能自救";
            GameStatus.GetComponent <Text> ().text = text;
            GameObject.Find("ChoosePlayer/YES").GetComponent <Button> ().interactable = false;
            return;
        }
        //解药没了
        if (jieyaoyongle == true)
        {
            text += jisha.GetComponent <PlayerCard> ().PlayerID.ToString() + jisha.GetComponent <PlayerCard> ().Name + "被杀了,解药没了";
            GameStatus.GetComponent <Text> ().text = text;
            GameObject.Find("ChoosePlayer/YES").GetComponent <Button> ().interactable = false;
            return;
        }
        text += jisha.GetComponent <PlayerCard> ().PlayerID.ToString() + jisha.GetComponent <PlayerCard> ().Name + "被杀了,使用解药?";
        GameStatus.GetComponent <Text> ().text = text;
    }
 public void Choose_YES()
 {
     ChoosePlayer.SetActive(false);
     CanClick = true;
     //选择情侣
     if (GameStage == "丘比特")
     {
         if (Lovers [0] == PlayerNow)
         {
             GameStatus.GetComponent <Text> ().text = "恋人重复了!";
         }
         else
         {
             Lovers [Lover] = PlayerNow;
             Lover++;
         }
         if (Lover > 1)
         {
             GameStatus.GetComponent <Text>().text = "丘比特请闭眼";
             CanClick = false;
             GoNext.GetComponent <Button> ().interactable = false;
             Invoke("ShowLovers", 2.0f);
         }
         return;
     }
     if (GameStage == "狼人")
     {
         jisha = PlayerNow;
         GameStatus.GetComponent <Text>().text = "狼人请闭眼";
         CanClick = false;
         GoNext.GetComponent <Button> ().interactable = false;
         Invoke("MoveOn", 2.0f);
         return;
     }
     if (GameStage == "女巫解药")
     {
         shiyongjieyao = true;
         jieyaoyongle  = true;
         CanClick      = false;
         MoveOn();
         return;
     }
     if (GameStage == "女巫毒药")
     {
         dusha       = PlayerNow;
         duyaoyongle = true;
         CanClick    = false;
         MoveOn();
         return;
     }
     if (GameStage == "守卫")
     {
         if (shouhu == PlayerNow)
         {
             GameStatus.GetComponent <Text> ().text = "不能连续2晚守护同一个目标";
         }
         else
         {
             CanClick = false;
             shouhu   = PlayerNow;
             MoveOn();
         }
         return;
     }
     if (GameStage == "先知")
     {
         GameStatus.GetComponent <Text> ().text = PlayerNow.GetComponent <PlayerCard> ().PlayerID.ToString() + PlayerNow.GetComponent <PlayerCard> ().Name + "的身份是" + PlayerNow.GetComponent <PlayerCard> ().Role + "\n先知请闭眼";
         CanClick = false;
         GoNext.GetComponent <Button> ().interactable = false;
         Invoke("MoveOn", 5.0f);
         return;
     }
     if (GameStage == "警长")
     {
         jingzhang = PlayerNow;
         GameStatus.GetComponent <Text> ().text = PlayerNow.GetComponent <PlayerCard> ().PlayerID.ToString() + PlayerNow.GetComponent <PlayerCard> ().Name + "当选警长";
         CanClick = false;
         GoNext.GetComponent <Button> ().interactable = false;
         Invoke("MoveOn", 2.0f);
         return;
     }
     if (GameStage == "选狼人")
     {
         toupiao = PlayerNow;
         GameStatus.GetComponent <Text> ().text = PlayerNow.GetComponent <PlayerCard> ().PlayerID.ToString() + PlayerNow.GetComponent <PlayerCard> ().Name + "被处决";
         CanClick = false;
         GoNext.GetComponent <Button> ().interactable = false;
         Invoke("MoveOn", 1.0f);
         return;
     }
     if (GameStage == "转移警长")
     {
         jingzhang = PlayerNow;
         GameStatus.GetComponent <Text> ().text = PlayerNow.GetComponent <PlayerCard> ().PlayerID.ToString() + PlayerNow.GetComponent <PlayerCard> ().Name + "成为警长";
         CanClick = false;
         GoNext.GetComponent <Button> ().interactable = false;
         Invoke("MoveOn", 2.0f);
         return;
     }
     if (GameStage == "猎人")
     {
         die(PlayerNow, "枪杀");
         GameStatus.GetComponent <Text> ().text = PlayerNow.GetComponent <PlayerCard> ().PlayerID.ToString() + PlayerNow.GetComponent <PlayerCard> ().Name + "被枪杀";
         CanClick = false;
         GoNext.GetComponent <Button> ().interactable = false;
         Invoke("MoveOn", 2.0f);
         return;
     }
 }