|
|
@@ -19,7 +19,7 @@ public class ConductController : MonoBehaviour
|
|
|
|
|
|
[LabelText("Èڻ꼼")] public ConductSkills[] conductSkills;
|
|
|
|
|
|
- public Photosphere photosphere;
|
|
|
+ public List<Photosphere> photospheres = new List<Photosphere>();
|
|
|
|
|
|
private void Awake()
|
|
|
{
|
|
|
@@ -148,23 +148,15 @@ public class ConductController : MonoBehaviour
|
|
|
break;
|
|
|
case ConductSkills.Barrier:
|
|
|
ConductManager.Barrier barrier = conductManager.barrier;
|
|
|
- Photosphere photosphere;
|
|
|
- if (this.photosphere)
|
|
|
- {
|
|
|
- obj = this.photosphere.gameObject;
|
|
|
- photosphere = this.photosphere;
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- obj = PoolManager.Instantiate(barrier.obj);
|
|
|
- obj.transform.parent = transform;
|
|
|
- photosphere = obj.GetComponent<Photosphere>();
|
|
|
- this.photosphere = photosphere;
|
|
|
- }
|
|
|
+ obj = PoolManager.Instantiate(barrier.obj);
|
|
|
+ obj.transform.parent = transform;
|
|
|
+ Photosphere photosphere = obj.GetComponent<Photosphere>();
|
|
|
obj.transform.position = transform.position + Vector3.up;
|
|
|
tagAdd += barrier.effectBonus[demonicRarity] * myTreasureTag[(int)barrier.attributeTag - 1] / 100;
|
|
|
photosphere.hp = Mathf.RoundToInt((prefabDemonic.totalHp + soldierExtraBuff.hp + gameManager.totalHp)*dienum * barrier.power[demonicRarity] * tagAdd);
|
|
|
photosphere.conductController = this;
|
|
|
+ photosphere.id = photospheres.Count;
|
|
|
+ photospheres.Add(photosphere);
|
|
|
break;
|
|
|
case ConductSkills.SpiritBloodAggregator:
|
|
|
ConductManager.SpiritBloodAggregator spiritBloodAggregator = conductManager.spiritBloodAggregator;
|