Exemplo n.º 1
0
 public void ClearCord()
 {
     if (RoomMap.IsCordValid(CurrCord) && RoomMap.Get(CurrCord) == MARK_MOB)
     {
         RoomMap.Set(CurrCord, "");
     }
 }
Exemplo n.º 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);
            }
        }