void Start()
 {
     _notificator  = UserNotificator.Instance;
     _eventStorage = EventStorage.Instance;
     _eventStorage.DropUserLoc.AddListener(_dropUserLocation);
     _eventStorage.LocationClicked.AddListener(_centralizeAt);
     _eventStorage.MapToDefault.AddListener(_dropCenterAndRefresh);
     _eventStorage.UserLocationDetermined.AddListener(_addUserLocationMarkerAndRefresh);
     _eventStorage.MapToUser.AddListener(_centerToUserAndRefresh);
     _eventStorage.OpenMaps.AddListener(_openGoogleMapsWithCurrentCenter);
     _initialize();
 }
 public MainView()
 {
     InitializeComponent();
     _userNotification = new UserNotificator();
 }
 void Awake()
 {
     Instance = this;
 }
Exemple #4
0
 public static void init(UserNotificator notificator)
 {
     userNotificator = notificator;
 }