|
|
@@ -1522,6 +1522,7 @@ public class PlayerController : MoveCharacter
|
|
|
uiMp.Show(mp, totalMp);
|
|
|
GameObject demonicObj = PoolManager.Instantiate(prefab);
|
|
|
Demonic demonic = demonicObj.GetComponent<Demonic>();
|
|
|
+ slr.SoldierAddLevelBuff(demonic);
|
|
|
onlySummonTime = demonic.summonTime;
|
|
|
invincibleTime = demonic.summonTime + addSummonInvincibleTime;
|
|
|
restSummonTime = onlySummonTime;
|
|
|
@@ -1540,22 +1541,9 @@ public class PlayerController : MoveCharacter
|
|
|
demonicObj.transform.localEulerAngles = Vector3.zero;
|
|
|
demonicObj.transform.localScale = new Vector3(1, 1, 1);
|
|
|
Vector3 offset = demonicSummonPos[id];
|
|
|
- if (bodyTrans.localScale.x > 0)
|
|
|
- {
|
|
|
- demonicObj.transform.position = transform.position + offset;
|
|
|
- if (demonic.bodyTrans.localScale.x < 0)
|
|
|
- {
|
|
|
- demonic.Turn();
|
|
|
- }
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- demonicObj.transform.position = transform.position + new Vector3(-offset.x, offset.y, offset.z);
|
|
|
- if (demonic.bodyTrans.localScale.x > 0)
|
|
|
- {
|
|
|
- demonic.Turn();
|
|
|
- }
|
|
|
- }
|
|
|
+ demonic.CheckTurn(-bodyTrans.localScale.x);
|
|
|
+ demonicObj.transform.position = transform.position
|
|
|
+ + new Vector3(bodyTrans.localScale.x > 0 ? offset.x: -offset.x, offset.y, offset.z);
|
|
|
if (demonic.canFly)
|
|
|
{
|
|
|
demonic.flyHeight = demonic.transform.position.y;
|
|
|
@@ -1575,7 +1563,7 @@ public class PlayerController : MoveCharacter
|
|
|
{
|
|
|
ls.AddDenomic(demonic);
|
|
|
}
|
|
|
- slr.SoldierAddLevelBuff(demonic);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
public void OnDemonicRecycle(Demonic demonic)
|
|
|
@@ -1616,7 +1604,7 @@ public class PlayerController : MoveCharacter
|
|
|
costMp += addCostMp[id] * demonicDic[id].Count;
|
|
|
if (mp < costMp)
|
|
|
{
|
|
|
- Debug.Log("mp不足召唤失败, 还得加个动画或者音效啥的");
|
|
|
+ //Debug.Log("mp不足召唤失败, 还得加个动画或者音效啥的");
|
|
|
return false;
|
|
|
}
|
|
|
}
|