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