| | 1 | | using DCL; |
| | 2 | | using UnityEngine; |
| | 3 | | using UnityEngine.EventSystems; |
| | 4 | |
|
| | 5 | | /* |
| | 6 | | * NOTE: create BuilderProjectsPanelController with just dragging a prefab in the editor |
| | 7 | | * to make it easy to test and modify without the need of loading the whole client |
| | 8 | | */ |
| | 9 | | public class BuilderProjectsPanelLocalTest : MonoBehaviour |
| | 10 | | { |
| | 11 | | private BuilderProjectsPanelController controller; |
| | 12 | |
|
| | 13 | | void Awake() |
| | 14 | | { |
| 0 | 15 | | WebRequestController.Create(); |
| | 16 | |
|
| 0 | 17 | | controller = new BuilderProjectsPanelController(); |
| 0 | 18 | | } |
| | 19 | | void Start() |
| | 20 | | { |
| 0 | 21 | | if (EventSystem.current == null) |
| | 22 | | { |
| 0 | 23 | | var eventSystem = new GameObject("EventSystem", typeof(EventSystem), typeof(StandaloneInputModule)); |
| | 24 | | } |
| 0 | 25 | | controller.Initialize(); |
| 0 | 26 | | controller.SetVisibility(true); |
| 0 | 27 | | } |
| | 28 | | } |