천일 외관 적용
This commit is contained in:
@@ -9,6 +9,7 @@ namespace WI
|
||||
public float distance;
|
||||
public float elevation;
|
||||
public float azimuth;
|
||||
public int floorIndex;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -426,7 +426,7 @@ namespace WI
|
||||
public void CameraPerspectiveView()
|
||||
{
|
||||
var saveData = saveTargetPositions[ViewMode.PerspectiveView];
|
||||
option.maxDistance = 150f;
|
||||
option.maxDistance = 60f;
|
||||
|
||||
if (saveData == null)
|
||||
{
|
||||
@@ -476,7 +476,7 @@ namespace WI
|
||||
onFirstPersonViewRay?.Invoke(hit);
|
||||
}
|
||||
}
|
||||
public void SaveTargetPosition()
|
||||
public void SaveTargetPosition(int floorIndex)
|
||||
{
|
||||
var cameraEntity = new CameraEntity();
|
||||
cameraEntity.x = option.target.position.x;
|
||||
@@ -485,6 +485,7 @@ namespace WI
|
||||
cameraEntity.distance = option.currentDistance;
|
||||
cameraEntity.azimuth = option.currentAzimuth;
|
||||
cameraEntity.elevation = option.currentElevation;
|
||||
cameraEntity.floorIndex = floorIndex;
|
||||
|
||||
saveTargetPositions[viewMode] = cameraEntity;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user