Exemple #1
0
 public void ClearCord()
 {
     if (RoomMap.IsCordValid(CurrCord) && RoomMap.Get(CurrCord) == MARK_MOB)
     {
         RoomMap.Set(CurrCord, "");
     }
 }
Exemple #2
0
        public void SetCurrCordToPos(Vector2 pos)
        {
            if (RoomMap.IsCordValid(CurrCord) && RoomMap.Get(CurrCord) == MARK_MOB)
            {
                RoomMap.Set(CurrCord, "");
            }


            CurrCord = RoomMap.PosToCord(pos);
            if (RoomMap.IsCordValid(CurrCord))
            {
                RoomMap.Set(CurrCord, MARK_MOB);
            }
        }