public void goBoarding() /* 人物上船 */ { Land land = boat.getBoatPos() ? startLand : endLand; int pos = boat.getAnEmptyIndex(); if (pos == -1) { Debug.Log("Boat No Empty."); return; } boat.setOccupied(pos); land.setEmpty(land.getSeatByPos(role.transform.position)); move.moveTowards(boat.getPos(pos)); isOnLand = 0; role.transform.parent = boat.getPrototype().transform; }