bool CheckLastPoint(int _index, LastPoint _point, Dungeon _currentDungeon, Dungeon _nextDungeon) { if (!FindIndex(_index)) { if (!_point.CheckDir()) { if (!FindDir(_point.direction)) { if (!currentDungeon.CheckRoomSize(_point, _currentDungeon, _nextDungeon)) { return(false); } else { return(true); } } else { return(true); } } else { return(true); } } else { return(true); } }