Example #1
0
        void TalkToDongHu()
        {
            var step = GameInterface_Player.GetIntState(GameBool.cunZhangState);

            if (step == 0)
            {
                if (!GameInterface_Player.GetGameState(GameBool.donghu1))
                {
                    StartCoroutine(DongHu1());
                }
                else
                {
                    DongHu2();
                }
            }
            else if (step == 1)
            {
                if (!GameInterface_Player.GetGameState(GameBool.donghu3))
                {
                    DongHu3();
                }
                else
                {
                    DongHu4();
                }
            }
            else if (step == 6)
            {
                DongHu6();
            }
        }
Example #2
0
 bool CheckCondition(List <string> con)
 {
     foreach (var c in con)
     {
         if (!GameInterface_Player.GetGameState(GameBool.chapter1Start))
         {
             return(false);
         }
     }
     return(true);
 }
Example #3
0
 void TalkToWanShan()
 {
     if (!GameInterface_Player.GetGameState(GameBool.wanshan1))
     {
         StartCoroutine(WanShan1());
     }
     else
     {
         WanShan2();
     }
 }
Example #4
0
 void TalkToQinQing()
 {
     if (!GameInterface_Player.GetGameState(GameBool.qinqing1))
     {
         StartCoroutine(QinQing1());
     }
     else
     {
         QinQing2();
     }
 }
Example #5
0
 void TalkToCunZhang()
 {
     Log.GUI("TalkTOCunZhange");
     //未曾开始对话
     if (!GameInterface_Player.GetGameState(GameBool.chapter1Start))
     {
         StartCoroutine(ShowChapter1StartDialog());
     }
     else
     {
         var step = GameInterface_Player.GetIntState(GameBool.cunZhangState);
         if (step == 0)
         {
             var c = new List <string>()
             {
                 GameBool.chapter1Start,
                 GameBool.zhiruo1,
                 GameBool.donghu1,
                 GameBool.qinqing1,
                 GameBool.wanshan1,
             };
             if (CheckCondition(c))
             {
                 StartCoroutine(CunZhang3());
             }
             else
             {
                 ShowCunZhangNormalWord();
             }
         }
         else if (step == 1)
         {
             CunZhang4();
         }
         else if (step == 2)
         {
             CunZhang5();
         }
         else if (step == 3)
         {
             CunZhang6();
         }
         else if (step == 5)
         {
             CunZhang7();
         }
         else if (step == 8)
         {
             CunZhang8();
         }
     }
 }
Example #6
0
        void TalkToZhiRuo()
        {
            var step = GameInterface_Player.GetIntState(GameBool.cunZhangState);

            if (step == 0)
            {
                if (!GameInterface_Player.GetGameState(GameBool.zhiruo1))
                {
                    StartCoroutine(ZhiRuo1());
                }
                else
                {
                    ZhiRuo2();
                }
            }
            else if (step == 1)
            {
                var c = new List <string>()
                {
                    GameBool.zhiruo3,
                };
                if (CheckCondition(c))
                {
                    StartCoroutine(ZhiRuo4());
                }
                else
                {
                    StartCoroutine(ZhiRuo3());
                }
            }
            else if (step == 3)
            {
                ZhiRuo5();
            }
            else if (step == 9)
            {
                ZhiRuo9();
            }
        }