Esempio n. 1
0
    public void NextDialogue()
    {
        if (index < dialog.Length - 1)
        {
            index++;

            switch (index)
            {
            case 2:
                bubbleImage.localPosition = bubblePos[0].localPosition;


                break;

            case 4:
                pipeAnim.SetBool("IsGlowing", true);

                break;

            case 5:
                bubbleImage.localPosition = bubblePos[1].localPosition;
                bubbleImage.sizeDelta     = new Vector2(334.4f, 83.7f);

                pipeAnim.SetBool("IsGlowing", false);

                anim.SetBool("IsFlashing_Pipe", true);
                StartCoroutine("WaitFingerAnimation");
                break;

            case 9:
                bubbleImage.localPosition = bubblePos[0].localPosition;
                bubbleImage.sizeDelta     = new Vector2(334.4f, 138.22f);

                break;

            case 10:
                //pipeContainer.SetActive(false);

                //indicator finger pops out
                anim.SetBool("PipeScore", true);
                StartCoroutine("WaitScoreAdded");
                break;

            case 11:
                anim.SetBool("PipeScore", false);
                anim.SetBool("PipeTimer", true);

                StartCoroutine("WaitTimerDecrease");
                Debug.Log("indexy == 10");
                break;

            default:
                Debug.Log("default");
                anim.SetBool("IsFlashing_Pipe", false);
                break;
            }

            TutorialSystem.PopDialog(index);
        }
    }
Esempio n. 2
0
 void Start()
 {
     TutorialSystem.PopDialog(index);
     levelChanger   = GameObject.FindObjectOfType <LevelChanger>();
     boolean        = true;
     pauseMenuLayer = LayerMask.GetMask("PauseButton");
 }
Esempio n. 3
0
 private void Start()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Esempio n. 4
0
 private void Awake()
 {
     if (_instance == null)
     {
         LoadTutorials();
         _instance = this;
     }
     else
     {
         Destroy(this);
     }
 }
Esempio n. 5
0
    void NextDialogue()
    {
        if (index < dialog.Length - 1)
        {
            index++;

            TutorialSystem.PopDialog(index);
        }
        else
        {
            Debug.Log("Index is out of range");
        }
    }
Esempio n. 6
0
 public void FalseResultDialogue()  // Called in TutorialChuteSlot script
 {
     if (index < dialog.Length - 1)
     {
         index = 4;
         TutorialSystem.PopDialog(index);
     }
     else if (index > dialog.Length - 1)
     {
         index = 0;
         TutorialSystem.PopDialog(index);
     }
 }
Esempio n. 7
0
 private void Awake()
 {
     if (_instance == null)
     {
         _instance = this;
     }
     // 인스턴스가 존재하는 경우 새로생기는 인스턴스를 삭제한다.
     else if (_instance != this)
     {
         Destroy(gameObject);
     }
     // 아래의 함수를 사용하여 씬이 전환되더라도 선언되었던 인스턴스가 파괴되지 않는다.
     DontDestroyOnLoad(gameObject);
 }
Esempio n. 8
0
    public void FalseResultDialogue()
    {
        if (index < dialog.Length - 1)
        {
            index = 6;
            TutorialSystem.PopDialog(index);

            progressText.text = "Try again!";
        }
        else if (index > dialog.Length - 1)
        {
            index = 0;
            TutorialSystem.PopDialog(index);
        }
    }
    void Start()
    {
        // Add systems here
        LivesSystem ls = new LivesSystem();

        AddSystem(ls);
        StreakSystem ss = new StreakSystem();

        AddSystem(ss);
        ScoreSystem scs = new ScoreSystem();

        AddSystem(scs);
        ColoringSystem cs = new ColoringSystem();

        AddSystem(cs);
        TouchSystem ts = new TouchSystem();

        AddSystem(ts);
        GameSystem gs = new GameSystem();

        AddSystem(gs);
        TutorialSystem tus = new TutorialSystem();

        AddSystem(tus);

        AnimationSystem ans = new AnimationSystem();

        AddSystem(ans);
        UISystem uis = new UISystem();

        AddSystem(uis);
        PauseSystem ps = new PauseSystem();

        AddSystem(ps);
        DestroySystem ds = new DestroySystem();

        AddSystem(ds);

        AdSystem ads = new AdSystem();

        AddSystem(ads);

        Enable();
        this.initializeGame = true;
        ExtraSetup();
    }
Esempio n. 10
0
    private void OnTouch()
    {
        if (!GameSystem.isPlaying && !TutorialSystem.isTutorialPlaying)
        {
            return;
        }

        GameController gc = GameController.Instance;

        gc.Player.GetComponent <ColorableComponent>().SetColor();
        if (!GameSystem.HasMatch())
        {
            BaseObject.AddComponent <LossComponent>();
        }

        GameObject.Destroy(GameSystem.GetExistingMatch());
        GameObject.Destroy(TutorialSystem.GetExistingMatch());
    }
Esempio n. 11
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        EditorGUILayout.Space(10);

        TutorialSystem _tutorialSystem = (TutorialSystem)target;

        _tutorialID = EditorGUILayout.TextField("Tutorial ID", _tutorialID);
        if (GUILayout.Button("Activate Tutorial"))
        {
            _tutorialSystem.ActivateTutorial(_tutorialID);
        }

        if (_tutorialSystem.ActiveTutorial != null && GUILayout.Button("Deactivate Tutorial"))
        {
            _tutorialSystem.DeactivateTutorial();
        }
    }
Esempio n. 12
0
    public void CorrectResultDialogue()  // Called in TutorialChuteSlot script
    {
        if (index <= dialog.Length - 1)
        {
            index = 5;
            TutorialSystem.PopDialog(index);

            foreach (Image j in image)
            {
                j.raycastTarget = false;
            }

            anim.SetBool("IsFlashing", false);
        }
        else if (index > dialog.Length - 1)
        {
            index = 0;
            TutorialSystem.PopDialog(index);
        }
    }
Esempio n. 13
0
    public void CorrectResultDialogue()
    {
        if (index <= dialog.Length - 1)
        {
            index = 7;
            TutorialSystem.PopDialog(index);

            progressText.text = "Great job!";

            foreach (Image j in image)
            {
                j.raycastTarget = false;
            }

            anim.SetBool("IsFlashing_Pipe", false);
        }
        else if (index > dialog.Length - 1)
        {
            index = 0;
            TutorialSystem.PopDialog(index);
        }
    }
Esempio n. 14
0
    public void NextDialogue()
    {
        if (index < dialog.Length - 1)
        {
            index++;

            if (index == 3)
            {
                foreach (Image i in image)
                {
                    i.raycastTarget = true;
                }

                anim.SetBool("IsFlashing", true);
            }

            if (index == 6)
            {
                anim.SetBool("IsScoreFlashing", true);

                bubbleImage.localPosition = flasingPos[0].localPosition;
            }

            if (index == 7)
            {
                anim.SetBool("IsScoreFlashing", false);
                anim.SetBool("IsTimeFlashing", true);
            }

            if (index == 8)
            {
                time.text = "0:00";
            }

            TutorialSystem.PopDialog(index);
        }
    }
Esempio n. 15
0
 void Start()
 {
     TutorialSystem.PopDialog(index);
 }
Esempio n. 16
0
 // Start is called before the first frame update
 void Start()
 {
     player         = FindObjectOfType <PlayerControl>();
     tutorialSystem = TutorialSystem.Instance;
 }
Esempio n. 17
0
 public TutorialSystem_v1(TutorialSystem inOldVersionTutorial)
 {
     throw new NotImplementedException();
 }
Esempio n. 18
0
    private void Awake()
    {
        Instance = this;

        DOTween.Init();
    }