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(); }
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(); } }
// 끝났는지 확인하는 함수.. 카운트로 정해야 할 듯... void CheckEnd() { PlayerInfo.Instance.isComplite = true; //20190905 수정사항 //checkPopUp.SetActive(true); TextObject.SetActive(false); bEnd = true; //20190905 수정사항 m_StagePlay.forwardDown(); }
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("테이블을 다 차려야 합니다."); } }
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(); }
public IEnumerator NextPage() { Check.SetActive(true); yield return(new WaitForSeconds(0.5f)); PlayerInfo.Instance.isComplite = true; Check.SetActive(false); m_StagePlay.forwardDown(); }
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(); }); }
public void ImgButtonEvent() { aButtons[iBtnCount].SetActive(false); iBtnCount++; if (this.transform.childCount <= iBtnCount) { // hmm... 그냥 넘기기..??? m_StagePlay.forwardDown(); iBtnCount = 0; return; } aButtons[iBtnCount].SetActive(true); }
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; } } } } }
public void OnButtonDown() { PlayerInfo.Instance.isComplite = true; m_StagePlay.forwardDown(); }
// Start is called before the first frame update void Start() { m_StagePlay = FindObjectOfType <StagePlay>(); this.GetComponent <Button>().onClick.AddListener(delegate { m_StagePlay.forwardDown(); }); }
void NextStage() { PlayerInfo.Instance.isComplite = true; m_StagePlay.forwardDown(); }
public void NextButtonEvent() { Debug.Log("button 22"); m_StagePlay.forwardDown(); }
void ToNextScene() { m_StagePlay.forwardDown(); }
public void NextButtonEvent() { m_StagePlay.forwardDown(); }