| | 1 | | using Cinemachine; |
| | 2 | | using UnityEngine; |
| | 3 | | using UnityEngine.UI; |
| | 4 | |
|
| | 5 | | namespace DCL.Tutorial |
| | 6 | | { |
| | 7 | | public class TutorialView : MonoBehaviour |
| | 8 | | { |
| | 9 | | [Header("General Configuration")] |
| | 10 | | [SerializeField] |
| | 11 | | internal TutorialSettings configuration; |
| | 12 | |
|
| | 13 | | [Header("3D Model Teacher references")] |
| | 14 | | [SerializeField] |
| | 15 | | internal Camera teacherCamera; |
| | 16 | |
|
| | 17 | | [SerializeField] |
| | 18 | | internal RawImage teacherRawImage; |
| | 19 | |
|
| | 20 | | [SerializeField] |
| | 21 | | internal TutorialTeacher teacher; |
| | 22 | |
|
| | 23 | | [SerializeField] |
| | 24 | | internal Canvas teacherCanvas; |
| | 25 | |
|
| | 26 | | [Header("Eagle Eye Camera references")] |
| | 27 | | [SerializeField] |
| | 28 | | internal CinemachineVirtualCamera eagleEyeCamera; |
| | 29 | |
|
| | 30 | | internal TutorialController tutorialController; |
| | 31 | |
|
| | 32 | | internal void ConfigureView(TutorialController tutorialController) |
| | 33 | | { |
| 78 | 34 | | this.tutorialController = tutorialController; |
| 78 | 35 | | configuration.ConfigureTeacher(teacherCamera, teacherRawImage, teacher, teacherCanvas); |
| 78 | 36 | | configuration.ConfigureEagleEyeCamera(eagleEyeCamera); |
| 78 | 37 | | } |
| | 38 | |
|
| 0 | 39 | | public void SetTutorialEnabled(string json) { tutorialController.SetTutorialEnabled(json); } |
| | 40 | |
|
| 0 | 41 | | public void SetTutorialEnabledForUsersThatAlreadyDidTheTutorial(string json) { tutorialController.SetTutorialEna |
| | 42 | | } |
| | 43 | | } |