Tower Data의 size 규칙 변경 및 현재 사용 중인 Tower들의 크기 조정
size x,y,z는 외형의 크기를 조정하지 않는다 외형의 크기는 모델에서 직접 조정한다
This commit is contained in:
@@ -18,9 +18,9 @@ MonoBehaviour:
|
||||
id: 1
|
||||
memo: "\uD0C0\uC6CC"
|
||||
mana: 25
|
||||
sizeX: 3
|
||||
sizeY: 3
|
||||
sizeZ: 3
|
||||
sizeX: 4
|
||||
sizeY: 10
|
||||
sizeZ: 4
|
||||
placementOffset: {x: 0, y: 0, z: 0}
|
||||
allowRotation: 1
|
||||
manpower: 10
|
||||
|
||||
@@ -18,9 +18,9 @@ MonoBehaviour:
|
||||
id: 2
|
||||
memo: "\uBCBD"
|
||||
mana: 5
|
||||
sizeX: 4
|
||||
sizeY: 3
|
||||
sizeZ: 2
|
||||
sizeX: 8
|
||||
sizeY: 4
|
||||
sizeZ: 3
|
||||
placementOffset: {x: 0, y: 0, z: 0}
|
||||
allowRotation: 1
|
||||
manpower: 5
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace Northbound.Data
|
||||
[Header("Properties for convenience")]
|
||||
public int width => sizeX;
|
||||
public int length => sizeY;
|
||||
public float height => sizeZ;
|
||||
public float height => sizeY;
|
||||
public int maxHealth => maxHp;
|
||||
public float visionRange => atkRange;
|
||||
public float requiredWorkAmount => manpower;
|
||||
@@ -77,7 +77,7 @@ namespace Northbound.Data
|
||||
bool isRotated = (rotation == 1 || rotation == 3);
|
||||
float w = isRotated ? length : width;
|
||||
float l = isRotated ? width : length;
|
||||
return new Vector3(w, height, l);
|
||||
return new Vector3(w, sizeY, l);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user