Example #1
0
 public void DestroySelf()
 {
     if (gameObj != null)
     {
         GameObject.Destroy(gameObj);
     }
     SceneMan.RemoveSceneObj(this);
     DungeonEntranceLabel.Remove(position);
 }
Example #2
0
 public static bool Remove(Vector3 pos)
 {
     PeMap.ILabel pl = PeMap.LabelMgr.Instance.Find(item =>
     {
         DungeonEntranceLabel l = item as DungeonEntranceLabel;
         if (l != null && l.pos == pos)
         {
             return(true);
         }
         return(false);
     });
     if (pl != null)
     {
         return(PeMap.LabelMgr.Instance.Remove(pl));
     }
     return(false);
 }
Example #3
0
 public virtual bool CompareTo(PeMap.ILabel label)
 {
     if (label is DungeonEntranceLabel)
     {
         DungeonEntranceLabel dLabel = (DungeonEntranceLabel)label;
         if (null != this.name && null != dLabel.name)
         {
             return(this.pos == dLabel.pos && this.name.Equals(dLabel.name));
         }
         else
         {
             return(this.pos == dLabel.pos);
         }
     }
     else
     {
         return(false);
     }
 }