| | 1 | | using Cinemachine; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using UnityEngine; |
| | 4 | | using UnityEngine.UI; |
| | 5 | |
|
| | 6 | | namespace DCL.Tutorial |
| | 7 | | { |
| | 8 | | [CreateAssetMenu(fileName = "TutorialSettings", menuName = "TutorialSettings")] |
| | 9 | | public class TutorialSettings : ScriptableObject |
| | 10 | | { |
| | 11 | | [Header("General Configuration")] |
| 0 | 12 | | public int tutorialVersion = 1; |
| 0 | 13 | | public float timeBetweenSteps = 0.5f; |
| 0 | 14 | | public bool sendStats = true; |
| | 15 | |
|
| | 16 | | [Header("Tutorial Steps on Genesis Plaza")] |
| 0 | 17 | | public List<TutorialStep> stepsOnGenesisPlaza = new (); |
| | 18 | |
|
| | 19 | | [Header("Tutorial Steps from Deep Link")] |
| 0 | 20 | | public List<TutorialStep> stepsFromDeepLink = new (); |
| | 21 | |
|
| | 22 | | [Header("Tutorial Steps from Reset Tutorial")] |
| 0 | 23 | | public List<TutorialStep> stepsFromReset = new (); |
| | 24 | |
|
| | 25 | | [Header("Tutorial Steps from User That Already Did The Tutorial")] |
| 0 | 26 | | public List<TutorialStep> stepsFromUserThatAlreadyDidTheTutorial = new (); |
| | 27 | |
|
| | 28 | | [Header("Teacher Configuration")] |
| 0 | 29 | | public float teacherMovementSpeed = 4f; |
| | 30 | | public AnimationCurve teacherMovementCurve; |
| | 31 | |
|
| | 32 | | [Header("Eagle Eye Camera Configuration")] |
| 0 | 33 | | public Vector3 eagleCamInitPosition = new (30, 30, -50); |
| 0 | 34 | | public Vector3 eagleCamInitLookAtPoint = new (0, 0, 0); |
| 0 | 35 | | public bool eagleCamRotationActived = true; |
| 0 | 36 | | public float eagleCamRotationSpeed = 1f; |
| | 37 | |
|
| | 38 | | [Header("Debugging Configuration")] |
| | 39 | | public bool debugRunTutorial; |
| | 40 | | [Min(0)] public int debugStartingStepIndex; |
| | 41 | | public bool debugOpenedFromDeepLink; |
| | 42 | |
|
| | 43 | | internal Camera teacherCamera; |
| | 44 | | internal RawImage teacherRawImage; |
| | 45 | | internal TutorialTeacher teacher; |
| | 46 | | internal Canvas teacherCanvas; |
| | 47 | | internal CinemachineVirtualCamera eagleEyeCamera; |
| | 48 | |
|
| | 49 | | public void ConfigureTeacher(Camera teacherCamera, RawImage teacherRawImage, TutorialTeacher teacher, Canvas tea |
| | 50 | | { |
| 0 | 51 | | this.teacherCamera = teacherCamera; |
| 0 | 52 | | this.teacherRawImage = teacherRawImage; |
| 0 | 53 | | this.teacher = teacher; |
| 0 | 54 | | this.teacherCanvas = teacherCanvas; |
| 0 | 55 | | } |
| | 56 | |
|
| | 57 | | public void ConfigureEagleEyeCamera(CinemachineVirtualCamera eagleEyeCamera) |
| | 58 | | { |
| 0 | 59 | | this.eagleEyeCamera = eagleEyeCamera; |
| 0 | 60 | | } |
| | 61 | | } |
| | 62 | | } |