private void Awake() { if (_Instance != null) { Destroy(gameObject); return; } if (isDontDestroyOnLoad) { DontDestroyOnLoad(gameObject); } _Instance = this; _serviceLocator = new ServiceLocator(); _serviceLocator.InitServices(); _visionManager = _serviceLocator.Get <IVisionManager>(); _visionManager.AnnotateSuccessEvent += AnnotateSuccessEventHandler; _visionManager.AnnotateFailedEvent += AnnotateFailedEventHandler; }
public FileBrowserPopup() { _fileManager = ServiceLocator.Get <IFileManager>(); }