Beispiel #1
0
 public override void OnEnter()
 {
     if (MapSystem == null)
     {
         MapSystem = KGFAccessor.GetObject <KGFMapSystem>();
     }
     if (MapSystem != null)
     {
         if (MapSystem.GetIsVisibleOnMap(MapIcon) == Visibility.Value)
         {
             Finish();
         }
         else
         {
             MapSystem.EventVisibilityOnMinimapChanged += OnVisibilityChanged;
         }
     }
     else
     {
         LogError("Please a add map icon to this action.");
     }
 }