| | 1 | | using DCL.Controllers; |
| | 2 | | using UnityEngine; |
| | 3 | |
|
| | 4 | | namespace DCL |
| | 5 | | { |
| | 6 | | /// <summary> |
| | 7 | | /// Context related to all the systems involved in the execution of decentraland scenes. |
| | 8 | | /// </summary> |
| | 9 | | [System.Obsolete("This is kept for retrocompatibilty and will be removed in the future. Use Environment.i.serviceLoc |
| | 10 | | public class HUDContext |
| | 11 | | { |
| | 12 | | private ServiceLocator serviceLocator; |
| 629 | 13 | | public IHUDFactory factory => serviceLocator.Get<IHUDFactory>(); |
| 35 | 14 | | public IHUDController controller => serviceLocator.Get<IHUDController>(); |
| | 15 | |
|
| 0 | 16 | | public HUDContext (ServiceLocator serviceLocator) |
| | 17 | | { |
| 0 | 18 | | this.serviceLocator = serviceLocator; |
| 0 | 19 | | } |
| | 20 | | } |
| | 21 | | } |