Пример #1
0
    public void OnButtonDown(int num)
    {
        int temp = -1;

        if (PlayerInfo.Instance.isComplite)
        {
            XML_Reader.Instance.scenarioToDict.BranchDictionary[m_StagePlay.sceneLoader.currentStage][Group][ID] = true;

            for (int k = 0; k < XML_Reader.Instance.scenarioToDict.BranchDictionary[m_StagePlay.sceneLoader.currentStage][Group].Count; k++)
            {
                if (XML_Reader.Instance.scenarioToDict.BranchDictionary[m_StagePlay.sceneLoader.currentStage][Group][k] == false)
                {
                    temp = m_StagePlay.Next;
                    break;
                }
                else
                {
                    temp = num;
                }
            }

            m_StagePlay.Index = temp;
            m_StagePlay.Prev  = XML_Reader.Instance.scenarioToDict.StageSetDictionary[m_StagePlay.sceneLoader.currentStage].PageList[m_StagePlay.Index].Prev;
            m_StagePlay.Next  = XML_Reader.Instance.scenarioToDict.StageSetDictionary[m_StagePlay.sceneLoader.currentStage].PageList[m_StagePlay.Index].Next;
            PlayerInfo.Instance.isComplite = false;
            m_StagePlay.StageSet();
        }
    }
Пример #2
0
 public void OnbuttonDown()
 {
     if (PlayerInfo.Instance.isComplite)
     {
         m_StagePlay.Index = 11;
         m_StagePlay.StageSet();
         PlayerInfo.Instance.isComplite = false;
     }
 }
Пример #3
0
 public void OnButtonDown(int num)
 {
     if (PlayerInfo.Instance.isComplite)
     {
         m_StagePlay.Index = num;
         m_StagePlay.Next  = XML_Reader.Instance.scenarioToDict.StageSetDictionary[m_StagePlay.sceneLoader.currentStage].PageList[m_StagePlay.Index].Next;
         m_StagePlay.Prev  = XML_Reader.Instance.scenarioToDict.StageSetDictionary[m_StagePlay.sceneLoader.currentStage].PageList[m_StagePlay.Index].Prev;
         PlayerInfo.Instance.isComplite = false;
         m_StagePlay.StageSet();
     }
 }
        //=======================================================================================================//
        //============================================== OBJECT SELECT ==============================================//
        //=======================================================================================================//
        void CurrySelect()
        {
            // 카레를 선택했을 때,, 대사 등의 event 처리 해야함...
            //CloneParent.SetActive(false);
            for (int i = 0; i < aSelectObjects.Length; ++i)
            {
                aSelectObjects[i].SetActive(false);
            }

            //aSelectObjects[0].SetActive(true);
            // 그리고 버튼.... 등장해야 함....
            //TableSettingUI.SetActive(false);
            //SelectUI.SetActive(true);
            //eRoute = ROUTE.SELECT_FOOD;
            //eTableSet = TABLE_SET.CURRY;
            m_StagePlay.Index = 8;
            m_StagePlay.Prev  = XML_Reader.Instance.scenarioToDict.StageSetDictionary[m_StagePlay.sceneLoader.currentStage].PageList[m_StagePlay.Index].Prev;
            m_StagePlay.Next  = XML_Reader.Instance.scenarioToDict.StageSetDictionary[m_StagePlay.sceneLoader.currentStage].PageList[m_StagePlay.Index].Next;
            m_StagePlay.StageSet();
        }
Пример #5
0
        //추가 스크립트 20190808
        IEnumerator PrevStage()
        {
            if (XML_Reader.Instance.scenarioToDict.QuizEventDictionary[XML_Reader.Instance.scenarioToDict.StageSetDictionary[stagePlay.sceneLoader.currentStage].PageList[stagePlay.Index].EventID].QuizInfoList.Type == "QuizTimeAtk")
            {
                yield return(new WaitForSeconds(1.0f));

                stagePlay.Index = Quiz_XML_Reader.Instance.quizToDict.QuizTimeAtkDictionary[XML_Reader.Instance.scenarioToDict.QuizEventDictionary[XML_Reader.Instance.scenarioToDict.StageSetDictionary[stagePlay.sceneLoader.currentStage].PageList[stagePlay.Index].EventID].ID].node.fail;
                stagePlay.Prev  = XML_Reader.Instance.scenarioToDict.StageSetDictionary[stagePlay.sceneLoader.currentStage].PageList[stagePlay.Index].Prev;
                stagePlay.Next  = XML_Reader.Instance.scenarioToDict.StageSetDictionary[stagePlay.sceneLoader.currentStage].PageList[stagePlay.Index].Next;
                stagePlay.StageSet();
            }
        }