|
|
@@ -171,6 +171,8 @@ public class PlayerController : MoveCharacter
|
|
|
private bool isReadyConduct;
|
|
|
//´óÅÖ×Ó
|
|
|
public GameObject bigGiant;
|
|
|
+ public float[] stageSize;
|
|
|
+ public int[] giantDieNum;
|
|
|
//¹âÇò
|
|
|
public GameObject photosphereObj;
|
|
|
//¹¥»÷Á¦
|
|
|
@@ -686,6 +688,23 @@ public class PlayerController : MoveCharacter
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+ private float TranSize(int dieNum)
|
|
|
+ {
|
|
|
+ for (int i = stageSize.Length - 1; i >= 0; i--)
|
|
|
+ {
|
|
|
+ if (dieNum >= giantDieNum[i])
|
|
|
+ {
|
|
|
+ if (i == stageSize.Length - 1)
|
|
|
+ {
|
|
|
+ return stageSize[i];
|
|
|
+ }
|
|
|
+ float size = stageSize[i] + (stageSize[i + 1] - stageSize[i]) / (giantDieNum[i + 1] - giantDieNum[i]) * (dieNum - giantDieNum[i]);
|
|
|
+ return size;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return 1;
|
|
|
+ }
|
|
|
+
|
|
|
public void Conduct()
|
|
|
{
|
|
|
if (mp >= conductCostMp[cacheConductId])
|
|
|
@@ -697,6 +716,7 @@ public class PlayerController : MoveCharacter
|
|
|
case ConductSkills.Giant:
|
|
|
if (demonicDic[1].Count > 0)
|
|
|
{
|
|
|
+ int dienum = demonicDic[1].Count;
|
|
|
int tempthp = giantNum * 1000;
|
|
|
foreach(Demonic d in giants)
|
|
|
{
|
|
|
@@ -710,7 +730,7 @@ public class PlayerController : MoveCharacter
|
|
|
demonic.playerID = playerId;
|
|
|
demonicObj.transform.parent = null;
|
|
|
demonicObj.transform.localEulerAngles = Vector3.zero;
|
|
|
- demonicObj.transform.localScale = new Vector3(2, 2, 2);
|
|
|
+ demonicObj.transform.localScale = new Vector3(1, 1, 1) * TranSize(dienum);
|
|
|
Vector3 offset = demonicSummonPos[1] * 2;
|
|
|
if (bodyTrans.localScale.x > 0)
|
|
|
{
|