public static bool MarkLocation(WorldMapLocation wml) { //Debug.Log ("Marking location " + wml.Reference.FullPath); if (!MarkedLocations.SafeAdd(wml.Reference)) { MarkedLocations.Remove(wml.Reference); wml.IsMarked = false; wml.IsNew = false; return(false); } wml.IsMarked = true; NGUIWorldMap.Get.RemoveMarkedLocationSprite(wml); NGUIWorldMap.Get.CreateMarkedLocationSprite(wml); return(true); }
public static bool MarkLocation(MobileReference mr) { //Debug.Log ("marking location " + mr.FullPath); return(MarkedLocations.SafeAdd(mr)); }