Exemple #1
0
        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);
        }
Exemple #2
0
 public StrollingLetterTutorialState(StrollingLivingLetter letter) : base(letter)
 {
     movement = letter.GetComponent <LetterCharacterController>();
 }
Exemple #3
0
 public StrollingLetterFallingState(StrollingLivingLetter letter) : base(letter)
 {
     view = letter.gameObject.GetComponent <LetterObjectView>();
 }
 public StrollingLetterState(StrollingLivingLetter letter)
 {
     this.letter = letter;
 }
Exemple #5
0
 public StrollingLetterIdleState(StrollingLivingLetter letter) : base(letter)
 {
 }
Exemple #6
0
 void Awake()
 {
     letter   = GetComponent <StrollingLivingLetter>();
     movement = letter.GetComponent <LetterCharacterController>();
 }