| | 1 | | using System.Collections; |
| | 2 | | using TMPro; |
| | 3 | | using UnityEngine; |
| | 4 | |
|
| | 5 | | namespace DCL.Tutorial |
| | 6 | | { |
| | 7 | | /// <summary> |
| | 8 | | /// Class that represents the onboarding tutorial step related to the welcoming. |
| | 9 | | /// </summary> |
| | 10 | | public class TutorialStep_Welcome : TutorialStep |
| | 11 | | { |
| | 12 | | [SerializeField] internal InputAction_Hold confirmInputAction; |
| | 13 | | [SerializeField] TMP_Text descriptionText; |
| | 14 | |
|
| | 15 | | public override void OnStepStart() |
| | 16 | | { |
| 1 | 17 | | base.OnStepStart(); |
| | 18 | |
|
| 1 | 19 | | confirmInputAction.RaiseOnFinished(); |
| 1 | 20 | | descriptionText.text = descriptionText.text.Replace("{userName}", UserProfile.GetOwnUserProfile().userName); |
| 1 | 21 | | } |
| | 22 | |
|
| 5 | 23 | | public override IEnumerator OnStepExecute() { yield return new WaitUntil(() => mainSection.activeSelf && confirm |
| | 24 | | } |
| | 25 | | } |