Esempio n. 1
0
    public void OnButtonDown()
    {
        if (false == PlayerInfo.Instance.isComplite)
        {
            return;
        }

        // hmm...
        for (int i = 0; i < this.transform.childCount; ++i)
        {
            aButtons[i].transform.GetComponent <Button>().enabled = false;
            aShadowImgs[i].SetActive(true);
        }

        iIndex++;
        if (this.transform.childCount <= iIndex)
        {
            //PlayerInfo.Instance.isComplite = true;
            m_StagePlay.forwardDown();
            return;
        }

        aButtons[iIndex].transform.GetComponent <Button>().enabled = true;
        aShadowImgs[iIndex].SetActive(false);
        PlayerInfo.Instance.isComplite = true;
        m_StagePlay.forwardDown();
    }
Esempio n. 2
0
        IEnumerator NextStage()
        {
            yield return(new WaitForSeconds(1.0f));

            PlayerInfo.Instance.isComplite = true;
            stagePlay.forwardDown();
        }
 public void StartButtonEvent()
 {
     if (PlayerInfo.Instance.isComplite)
     {
         stagePlay.forwardDown();
         clipSceneMgr.StartAnimation();
     }
 }
Esempio n. 4
0
 // 끝났는지 확인하는 함수.. 카운트로 정해야 할 듯...
 void CheckEnd()
 {
     PlayerInfo.Instance.isComplite = true;
     //20190905 수정사항
     //checkPopUp.SetActive(true);
     TextObject.SetActive(false);
     bEnd = true;
     //20190905 수정사항
     m_StagePlay.forwardDown();
 }
Esempio n. 5
0
    public void SelectTexture()
    {
        if (image != null)
        {
            if (ARCoreSession != null)
            {
                if (ARCoreSession.DeviceCameraDirection == GoogleARCore.DeviceCameraDirection.BackFacing)
                {
                    image.uvRect = new Rect(0, 0, 1, 1);
                }

                else
                {
                    image.uvRect = new Rect(0, 0, 1, -1);
                }
            }
            image.texture = texture;
            PlayerInfo.Instance.isComplite = true;
            m_StagePlay.forwardDown();
        }
        else
        {
            return;
        }
    }
        public void TableSettingComplete()
        {
            if (true == bTable && true == bCurry && true == bRiceNoodle && true == bChinaNoodle && true == bMisoSoup)
            {
                bool bCheckCurry       = false;
                bool bCheckRiceNoodle  = false;
                bool bCheckChinaNoodle = false;
                bool bCheckMisoSoup    = false;

                bCheckCurry       = tableNaviSc.GetSettle(TABLE_SET.CURRY);
                bCheckRiceNoodle  = tableNaviSc.GetSettle(TABLE_SET.RICE_NOODLE);
                bCheckChinaNoodle = tableNaviSc.GetSettle(TABLE_SET.CHINA_NOODLE);
                bCheckMisoSoup    = tableNaviSc.GetSettle(TABLE_SET.MISO_SOUP);

                //uiManager.SetTestText("rice noodle: " + bCheckRiceNoodle.ToString());

                if (true == bCheckCurry && true == bCheckRiceNoodle && true == bCheckChinaNoodle && true == bCheckMisoSoup)
                {
                    // 이러면 OK...
                    eRoute = ROUTE.SELECT_FOOD;
                    PlayerInfo.Instance.isComplite = true;
                    Debug.Log("player:" + PlayerInfo.Instance.isComplite);
                    m_StagePlay.forwardDown();
                    //uiManager.SetTestText("테이블 차리기 끝");
                }
                else
                {
                    Debug.Log("Failed");
                }
            }
            else
            {
                //uiManager.SetTestText("테이블을 다 차려야 합니다.");
            }
        }
Esempio n. 7
0
 public void buttonDown()
 {
     m_StagePlay.ARCore.transform.gameObject.SetActive(false);
     main.transform.gameObject.SetActive(true);
     main.transform.rotation        = Quaternion.Euler(Vector3.zero);
     PlayerInfo.Instance.isComplite = true;
     m_StagePlay.forwardDown();
 }
Esempio n. 8
0
    public IEnumerator NextPage()
    {
        Check.SetActive(true);
        yield return(new WaitForSeconds(0.5f));

        PlayerInfo.Instance.isComplite = true;
        Check.SetActive(false);
        m_StagePlay.forwardDown();
    }
Esempio n. 9
0
    public void AnswerButtonEvent()
    {
        if ("" == answer.text)
        {
            return;
        }

        m_StagePlay.forwardDown();
    }
 // Start is called before the first frame update
 void Awake()
 {
     m_StagePlay = FindObjectOfType <StagePlay>();
     for (int i = 0; i < aButtons.Length; ++i)
     {
         aButtons[i] = this.transform.GetChild(i + 1).gameObject.GetComponent <Button>();
         aButtons[i].onClick.AddListener(delegate { m_StagePlay.forwardDown(); });
     }
 }
 // Start is called before the first frame update
 void Awake()
 {
     m_StagePlay = FindObjectOfType <StagePlay>();
     for (int i = 0; i < aStampImage.Length; ++i)
     {
         aStampImage[i] = this.transform.GetChild(i + 1).gameObject.transform.GetChild(1).gameObject;
         aStampImage[i].SetActive(false);
     }
     nextButton = this.transform.GetChild(5).gameObject.transform.GetComponent <Button>();
     nextButton.onClick.AddListener(delegate { m_StagePlay.forwardDown(); });
 }
    // Start is called before the first frame update
    void Start()
    {
        m_StagePlay   = FindObjectOfType <StagePlay>();
        GlassesButton = this.transform.GetChild(1).gameObject.GetComponent <Button>();
        NextButton    = this.transform.GetChild(4).gameObject.GetComponent <Button>();
        textBg        = this.transform.GetChild(2).gameObject;
        textDescribe  = this.transform.GetChild(3).gameObject;

        GlassesButton.onClick.AddListener(delegate { GlassesButtonEvent(); });
        NextButton.onClick.AddListener(delegate { m_StagePlay.forwardDown(); });
    }
Esempio n. 13
0
 public void ImgButtonEvent()
 {
     aButtons[iBtnCount].SetActive(false);
     iBtnCount++;
     if (this.transform.childCount <= iBtnCount)
     {
         // hmm... 그냥 넘기기..???
         m_StagePlay.forwardDown();
         iBtnCount = 0;
         return;
     }
     aButtons[iBtnCount].SetActive(true);
 }
Esempio n. 14
0
 public void ButtonDown()
 {
     if (num == XML_Reader.Instance.scenarioToDict.SelectItemEventDictionary[XML_Reader.Instance.scenarioToDict.StageSetDictionary[m_StagePlay.sceneLoader.currentStage].PageList[m_StagePlay.Index].EventID].Item)
     {
         Debug.Log("정답이다. 연금술사!");
         PlayerInfo.Instance.isComplite = true;
         m_StagePlay.forwardDown();
     }
     else
     {
         this.GetComponent <Button>().interactable = false;
         this.transform.GetChild(0).gameObject.SetActive(true);
     }
 }
 private void OnEnable()
 {
     for (int k = 0; k < XML_Reader.Instance.scenarioToDict.CreateObjType2DDictionary[m_StagePlay.sceneLoader.currentStage].Count; k++)
     {
         for (int j = 0; j < m_StagePlay.sceneLoader.object2DDict[k].Count; j++)
         {
             if (m_StagePlay.sceneLoader.object2DDict[k][j].name == "forward")
             {
                 if (m_StagePlay.sceneLoader.object2DDict[k][j].activeSelf == false)
                 {
                     this.GetComponent <Button>().interactable = true;
                     this.GetComponent <Button>().onClick.AddListener(delegate { m_StagePlay.forwardDown(); });
                 }
                 else
                 {
                     this.GetComponent <Button>().interactable = false;
                 }
             }
         }
     }
 }
Esempio n. 16
0
 public void OnButtonDown()
 {
     PlayerInfo.Instance.isComplite = true;
     m_StagePlay.forwardDown();
 }
Esempio n. 17
0
 // Start is called before the first frame update
 void Start()
 {
     m_StagePlay = FindObjectOfType <StagePlay>();
     this.GetComponent <Button>().onClick.AddListener(delegate { m_StagePlay.forwardDown(); });
 }
Esempio n. 18
0
 void NextStage()
 {
     PlayerInfo.Instance.isComplite = true;
     m_StagePlay.forwardDown();
 }
 public void NextButtonEvent()
 {
     Debug.Log("button 22");
     m_StagePlay.forwardDown();
 }
Esempio n. 20
0
 void ToNextScene()
 {
     m_StagePlay.forwardDown();
 }
 public void NextButtonEvent()
 {
     m_StagePlay.forwardDown();
 }