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); } }
void Start() { TutorialSystem.PopDialog(index); levelChanger = GameObject.FindObjectOfType <LevelChanger>(); boolean = true; pauseMenuLayer = LayerMask.GetMask("PauseButton"); }
private void Start() { if (instance == null) { instance = this; } }
private void Awake() { if (_instance == null) { LoadTutorials(); _instance = this; } else { Destroy(this); } }
void NextDialogue() { if (index < dialog.Length - 1) { index++; TutorialSystem.PopDialog(index); } else { Debug.Log("Index is out of range"); } }
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); } }
private void Awake() { if (_instance == null) { _instance = this; } // 인스턴스가 존재하는 경우 새로생기는 인스턴스를 삭제한다. else if (_instance != this) { Destroy(gameObject); } // 아래의 함수를 사용하여 씬이 전환되더라도 선언되었던 인스턴스가 파괴되지 않는다. DontDestroyOnLoad(gameObject); }
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(); }
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()); }
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(); } }
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); } }
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); } }
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); } }
void Start() { TutorialSystem.PopDialog(index); }
// Start is called before the first frame update void Start() { player = FindObjectOfType <PlayerControl>(); tutorialSystem = TutorialSystem.Instance; }
public TutorialSystem_v1(TutorialSystem inOldVersionTutorial) { throw new NotImplementedException(); }
private void Awake() { Instance = this; DOTween.Init(); }