보스전 카메라
This commit is contained in:
parent
bc40472043
commit
9e7e95f2ca
|
|
@ -170,10 +170,10 @@ MonoBehaviour:
|
||||||
maxDistance: 1.6
|
maxDistance: 1.6
|
||||||
DistanceUp: 1
|
DistanceUp: 1
|
||||||
cameraHeight: 78
|
cameraHeight: 78
|
||||||
- minDistance: 0
|
- minDistance: 2
|
||||||
maxDistance: 0
|
maxDistance: 3
|
||||||
DistanceUp: 0
|
DistanceUp: 3.5
|
||||||
cameraHeight: 0
|
cameraHeight: 78
|
||||||
CamStatus2_x: 4
|
CamStatus2_x: 4
|
||||||
CamStatus2_up: 1.4
|
CamStatus2_up: 1.4
|
||||||
shakeCurve:
|
shakeCurve:
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,14 @@ public class RealCamera : MyCoroutine
|
||||||
|
|
||||||
public cCamData[] arr_cCamData; // 0 일반, 1 보스
|
public cCamData[] arr_cCamData; // 0 일반, 1 보스
|
||||||
|
|
||||||
|
void Init_Cam()
|
||||||
|
{
|
||||||
|
int index = islockTarget ? 1 : 0;
|
||||||
|
Set_DistanceUp(false);
|
||||||
|
minDistance = arr_cCamData[index].minDistance;
|
||||||
|
VerticalAxis = maxDistance = arr_cCamData[index].maxDistance;
|
||||||
|
cameraHeight = arr_cCamData[index].cameraHeight;
|
||||||
|
}
|
||||||
public void Add_Rot(float rot) { rotateAround += rot; }
|
public void Add_Rot(float rot) { rotateAround += rot; }
|
||||||
public void Set_Rot(float rot) { rotateAround = rot; }
|
public void Set_Rot(float rot) { rotateAround = rot; }
|
||||||
public bool IsEnter() { return CamStatus == 0; }
|
public bool IsEnter() { return CamStatus == 0; }
|
||||||
|
|
@ -76,12 +84,11 @@ public class RealCamera : MyCoroutine
|
||||||
Set_Target(_target);
|
Set_Target(_target);
|
||||||
CamStatus = 0;
|
CamStatus = 0;
|
||||||
rotateAround = _camrot;
|
rotateAround = _camrot;
|
||||||
Set_DistanceUp(false);
|
Init_Cam();
|
||||||
VerticalAxis = maxDistance = arr_cCamData[0].maxDistance;
|
|
||||||
}
|
}
|
||||||
public void Set_DistanceUp(bool vertical)
|
public void Set_DistanceUp(bool vertical)
|
||||||
{
|
{
|
||||||
DistanceUp = vertical ? 0f : arr_cCamData[0].DistanceUp;
|
DistanceUp = vertical ? 0f : arr_cCamData[islockTarget ? 1 : 0].DistanceUp;
|
||||||
}
|
}
|
||||||
public void Set_InsideBuilding(bool _active)
|
public void Set_InsideBuilding(bool _active)
|
||||||
{
|
{
|
||||||
|
|
@ -93,10 +100,7 @@ public class RealCamera : MyCoroutine
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
minDistance = arr_cCamData[0].minDistance;
|
Init_Cam();
|
||||||
VerticalAxis = maxDistance = arr_cCamData[0].maxDistance;
|
|
||||||
Set_DistanceUp(false);
|
|
||||||
cameraHeight = arr_cCamData[0].cameraHeight;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public void Set_FollowTarget(Actor target)
|
public void Set_FollowTarget(Actor target)
|
||||||
|
|
@ -114,6 +118,7 @@ public class RealCamera : MyCoroutine
|
||||||
{
|
{
|
||||||
tf_lockTarget = locktarget;
|
tf_lockTarget = locktarget;
|
||||||
islockTarget = tf_lockTarget;
|
islockTarget = tf_lockTarget;
|
||||||
|
Init_Cam();
|
||||||
}
|
}
|
||||||
public void Set_TargetShow(Transform _target)
|
public void Set_TargetShow(Transform _target)
|
||||||
{
|
{
|
||||||
|
|
@ -232,8 +237,8 @@ public class RealCamera : MyCoroutine
|
||||||
transform.eulerAngles = new Vector3(90f, transform.eulerAngles.y);
|
transform.eulerAngles = new Vector3(90f, transform.eulerAngles.y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public float CamStatus2_x = 4f;
|
public float CamStatus2_x = 4f; // 특정 스킬뷰
|
||||||
public float CamStatus2_up = 1.4f;
|
public float CamStatus2_up = 1.4f; // 특정 스킬뷰
|
||||||
|
|
||||||
void Start_Game()
|
void Start_Game()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue