/// <summary> /// 시작하기 /// </summary> /// <param name="tutorialMode">튜토리얼</param> /// <param name="pantsMode">본 게임</param> public void Play(bool tutorialMode, bool pantsMode) { if (tutorialMode == pantsMode) { Debug.LogWarning("잘못 호출하셨습니다."); return; } _tutorialUI.SetActive(false); _pantsUI.SetActive(false); // 튜토리얼은 30초 설정 if (tutorialMode) { _playTime = 30.0f; } // 본 게임은 90초 설정 if (pantsMode) { _playTime = 90.0f; } _flowTime = 0.0f; score = 100; // 웨이포인트를 나타내는 불변수 false로 초기화 for (int i = 0; i < area.Length; i++) { area[i] = false; } this.transform.position = new Vector3(-2.5f, -5f, 2.5f); _prePosition = transform.position; _tutorialGame.SetActive(tutorialMode); _pantsGame.SetActive(pantsMode); explanation = null; cntState = STATE.Playing; }
public override void GameStart() { cntState = STATE.Ready; if (isTutorial) { _tutorialUI.SetActive(true); _pantsUI.SetActive(false); explanation = _tutorialUI; isTutorial = false; } else { _tutorialUI.SetActive(false); _pantsUI.SetActive(true); explanation = _pantsUI; } }