| | 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")] |
| 41 | 12 | | public int tutorialVersion = 1; |
| 41 | 13 | | public float timeBetweenSteps = 0.5f; |
| 41 | 14 | | public bool sendStats = true; |
| | 15 | |
|
| | 16 | | [Header("Tutorial Steps on Genesis Plaza")] |
| 41 | 17 | | public List<TutorialStep> stepsOnGenesisPlaza = new List<TutorialStep>(); |
| | 18 | |
|
| | 19 | | [Header("Tutorial Steps from Deep Link")] |
| 41 | 20 | | public List<TutorialStep> stepsFromDeepLink = new List<TutorialStep>(); |
| | 21 | |
|
| | 22 | | [Header("Tutorial Steps from Reset Tutorial")] |
| 41 | 23 | | public List<TutorialStep> stepsFromReset = new List<TutorialStep>(); |
| | 24 | |
|
| | 25 | | [Header("Tutorial Steps from Builder In World")] |
| 41 | 26 | | public List<TutorialStep> stepsFromBuilderInWorld = new List<TutorialStep>(); |
| | 27 | |
|
| | 28 | | [Header("Tutorial Steps from User That Already Did The Tutorial")] |
| 41 | 29 | | public List<TutorialStep> stepsFromUserThatAlreadyDidTheTutorial = new List<TutorialStep>(); |
| | 30 | |
|
| | 31 | | [Header("Teacher Configuration")] |
| 41 | 32 | | public float teacherMovementSpeed = 4f; |
| | 33 | | public AnimationCurve teacherMovementCurve; |
| | 34 | |
|
| | 35 | | [Header("Eagle Eye Camera Configuration")] |
| 41 | 36 | | public Vector3 eagleCamInitPosition = new Vector3(30, 30, -50); |
| 41 | 37 | | public Vector3 eagleCamInitLookAtPoint = new Vector3(0, 0, 0); |
| 41 | 38 | | public bool eagleCamRotationActived = true; |
| 41 | 39 | | public float eagleCamRotationSpeed = 1f; |
| | 40 | |
|
| | 41 | | [Header("Debugging Configuration")] |
| | 42 | | public bool debugRunTutorial = false; |
| | 43 | | public int debugStartingStepIndex; |
| | 44 | | public bool debugOpenedFromDeepLink = false; |
| | 45 | |
|
| | 46 | | internal Camera teacherCamera; |
| | 47 | | internal RawImage teacherRawImage; |
| | 48 | | internal TutorialTeacher teacher; |
| | 49 | | internal Canvas teacherCanvas; |
| | 50 | | internal CinemachineVirtualCamera eagleEyeCamera; |
| | 51 | |
|
| | 52 | | public void ConfigureTeacher(Camera teacherCamera, RawImage teacherRawImage, TutorialTeacher teacher, Canvas tea |
| | 53 | | { |
| 78 | 54 | | this.teacherCamera = teacherCamera; |
| 78 | 55 | | this.teacherRawImage = teacherRawImage; |
| 78 | 56 | | this.teacher = teacher; |
| 78 | 57 | | this.teacherCanvas = teacherCanvas; |
| 78 | 58 | | } |
| | 59 | |
|
| 0 | 60 | | public void ConfigureEagleEyeCamera(CinemachineVirtualCamera eagleEyeCamera) { this.eagleEyeCamera = eagleEyeCam |
| | 61 | | } |
| | 62 | | } |