コード例 #1
0
ファイル: WorldMap.cs プロジェクト: yazici/FRONTIERS
 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);
 }
コード例 #2
0
ファイル: WorldMap.cs プロジェクト: yazici/FRONTIERS
 public static bool MarkLocation(MobileReference mr)
 {
     //Debug.Log ("marking location " + mr.FullPath);
     return(MarkedLocations.SafeAdd(mr));
 }