private void OnMotionFinish(MotionFinish M) { GameManager.levelState = LevelState.Play; if (gameObject.activeSelf) { CheckLevelState(); } }
private void OnMotionFinish(MotionFinish e) { for (int i = 0; i < TutorialTextList.Count; i++) { if (GameManager.ActivatedLevel.GetComponent <LevelManager>().LevelIndex == TutorialTextList[i].Level && TutorialTextList[i].Text != CurrentText && TutorialTextList[i].AppearTiming == LevelTiming.MotionFinish) { CurrentText = TutorialTextList[i].Text; GetComponent <Text>().text = CurrentText; StartCoroutine(ShowText()); break; } } }