|
@@ -1495,53 +1495,18 @@ public class PlayerController : MoveCharacter
|
|
|
}
|
|
}
|
|
|
mp -= costMp;
|
|
mp -= costMp;
|
|
|
uiMp.Show(mp, totalMp);
|
|
uiMp.Show(mp, totalMp);
|
|
|
- if (demonicPrefabs[id].GetComponent<Demonic>().canFly)
|
|
|
|
|
|
|
+ for (int i = 0; i < nextSummonNum; i++)
|
|
|
{
|
|
{
|
|
|
- for (int i = 0; i < nextSummonNum; i++)
|
|
|
|
|
|
|
+ Demonic demonic = CreateDemonic(id);
|
|
|
|
|
+ if (demonic.canFly)
|
|
|
{
|
|
{
|
|
|
- Demonic demonic = CreateDemonic(id);
|
|
|
|
|
if (i > 0) demonic.transform.position += new Vector3(Random.Range(-2, 2), Random.Range(-2, 2), 0);
|
|
if (i > 0) demonic.transform.position += new Vector3(Random.Range(-2, 2), Random.Range(-2, 2), 0);
|
|
|
-
|
|
|
|
|
- int attackSummonId = nowAttackSummonID;
|
|
|
|
|
-
|
|
|
|
|
- if (lastSoldier != demonic.soldierType)
|
|
|
|
|
- {
|
|
|
|
|
- attackSummonId = 0;
|
|
|
|
|
- }
|
|
|
|
|
- demonic.attackController.attackSummonId = attackSummonId;
|
|
|
|
|
- onlySummonTime = demonic.attackController.summonTime[attackSummonId];
|
|
|
|
|
- invincibleTime = onlySummonTime + addSummonInvincibleTime;
|
|
|
|
|
- restSummonTime = onlySummonTime;
|
|
|
|
|
- demonic.Attack_summon();
|
|
|
|
|
- lastSoldier = demonic.soldierType;
|
|
|
|
|
- attackSummonId++;
|
|
|
|
|
- if (attackSummonId >= demonic.attackController.attackMethod_summon.Length)
|
|
|
|
|
- {
|
|
|
|
|
- attackSummonId = 0;
|
|
|
|
|
- AttackSummonChangeTime = 0;
|
|
|
|
|
- }
|
|
|
|
|
- else
|
|
|
|
|
- {
|
|
|
|
|
- AttackSummonChangeTime = AttackSummonChangeTotalTime;
|
|
|
|
|
- }
|
|
|
|
|
- nowAttackSummonID = attackSummonId;
|
|
|
|
|
- //id 3~6 ΪËĸöÓ¢Áé
|
|
|
|
|
- if (id >= 3)
|
|
|
|
|
- {
|
|
|
|
|
- spirits.ultimateTimes[id - 3] -= spirits.summonCost;
|
|
|
|
|
- }
|
|
|
|
|
- spiritSystem.RefreshPlayerUI();
|
|
|
|
|
- if (isInSoulTower)
|
|
|
|
|
- {
|
|
|
|
|
- ls.AddDenomic(demonic);
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
- nextSummonNum = 1;
|
|
|
|
|
- GameUI.instance.summonNum.text = nextSummonNum.ToString();
|
|
|
|
|
- }
|
|
|
|
|
- else
|
|
|
|
|
- {
|
|
|
|
|
- Demonic demonic = CreateDemonic(id);
|
|
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ if (i > 0) demonic.transform.position += new Vector3(Random.Range(-2, 2), Random.Range(-0.5f, 0.5f), 0);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
int attackSummonId = nowAttackSummonID;
|
|
int attackSummonId = nowAttackSummonID;
|
|
|
|
|
|
|
|
if (lastSoldier != demonic.soldierType)
|
|
if (lastSoldier != demonic.soldierType)
|
|
@@ -1576,6 +1541,8 @@ public class PlayerController : MoveCharacter
|
|
|
ls.AddDenomic(demonic);
|
|
ls.AddDenomic(demonic);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ nextSummonNum = 1;
|
|
|
|
|
+ GameUI.instance.summonNum.text = nextSummonNum.ToString();
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|