private void StartPointerTutorial(TutorialFragmentPointer currentFragment) { if (currentFragment.LinkedButton != null) { PointAtButton(currentFragment.LinkedButton, currentFragment.PointDirection, currentFragment.DelayShowTime); } else { PointAtSceneObject(currentFragment.TargetTransform, currentFragment.LinkedClickableObject, currentFragment.PointDirection, currentFragment.DelayShowTime); } }
private void RemovePointer() { if (pointObject != null) { TutorialFragmentPointer currentFragment = tutorialSequence[SaveController.Instance.GameData.BoterKroon.TutorialIndex] as TutorialFragmentPointer; if (currentFragment.LinkedButton != null) { currentFragment.LinkedButton.onClick.RemoveListener(RemovePointer); currentFragment.LinkedButton.transform.SetParent(originalParent); currentFragment.LinkedButton.transform.SetSiblingIndex(originalSiblingIndex); } else { currentFragment.LinkedClickableObject.OnObjectClicked -= RemovePointer; } Destroy(pointObject); } canvasGroup.blocksRaycasts = false; canvasGroup.interactable = false; canvasGroup.DOFade(0, 0.3f).OnComplete(() => { OnTutorialFinished(); }); }