void DrawTutorial() { if (game.QuestionManager.crowd.GetLetter(game.QuestionManager.dropContainer.GetActiveData()) == null) { return; } StrollingLivingLetter tutorialLetter = game.QuestionManager.crowd.GetLetter(game.QuestionManager.dropContainer.GetActiveData()); Vector3 startLine = tutorialLetter.gameObject.GetComponent <LetterObjectView>().contentTransform.position; Vector3 endLine = game.QuestionManager.dropContainer.transform.position; List <StrollingLivingLetter> nearLetters = new List <StrollingLivingLetter>(); game.QuestionManager.crowd.GetNearLetters(nearLetters, startLine, 10f); for (int i = 0; i < nearLetters.Count; i++) { if (nearLetters[i] != tutorialLetter) { nearLetters[i].Scare(startLine, 3f); } } tutorialLetter.Tutorial(); TutorialUI.DrawLine(startLine, endLine, TutorialUI.DrawLineMode.Finger); }
public StrollingLetterTutorialState(StrollingLivingLetter letter) : base(letter) { movement = letter.GetComponent <LetterCharacterController>(); }
public StrollingLetterFallingState(StrollingLivingLetter letter) : base(letter) { view = letter.gameObject.GetComponent <LetterObjectView>(); }
public StrollingLetterState(StrollingLivingLetter letter) { this.letter = letter; }
public StrollingLetterIdleState(StrollingLivingLetter letter) : base(letter) { }
void Awake() { letter = GetComponent <StrollingLivingLetter>(); movement = letter.GetComponent <LetterCharacterController>(); }