|
@@ -24,6 +24,8 @@ public class StoneStatue:MonoBehaviour
|
|
|
[LabelText("向右发射的基础角度")] public float rightBaseAngle = 45f;
|
|
[LabelText("向右发射的基础角度")] public float rightBaseAngle = 45f;
|
|
|
[LabelText("向右发射的角度范围")] public float rightAngleRange = 60f;
|
|
[LabelText("向右发射的角度范围")] public float rightAngleRange = 60f;
|
|
|
|
|
|
|
|
|
|
+ public GameObject disappearEffect;
|
|
|
|
|
+
|
|
|
private void Awake()
|
|
private void Awake()
|
|
|
{
|
|
{
|
|
|
ac = GetComponent<AttackController>();
|
|
ac = GetComponent<AttackController>();
|
|
@@ -147,6 +149,7 @@ public class StoneStatue:MonoBehaviour
|
|
|
|
|
|
|
|
private void OnDisable()
|
|
private void OnDisable()
|
|
|
{
|
|
{
|
|
|
|
|
+ if(disappearEffect != null) PoolManager.Instantiate(disappearEffect, transform.position, new Quaternion(0, 0, 0, 0));
|
|
|
GameManager.instance.player.rebornSkills.Remove(this);
|
|
GameManager.instance.player.rebornSkills.Remove(this);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|