| | |
| | | public class WoodPileAgent : Agent |
| | | { |
| | | /// <summary> |
| | | /// 外部赋值,唯一标识一个泡泡炸弹代理 |
| | | /// </summary> |
| | | public int Id { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 木桩墙壁收到货塔攻击的额外伤害倍率 |
| | | /// </summary> |
| | | public float FireHurtRate { get; set; } |
| | | |
| | | public GameObject appearPS; |
| | | public GameObject diePS; |
| | | |
| | | |
| | | /// <summary> |
| | | /// Peforms the relevant path update |
| | |
| | | // 统一管理器内删除当前的Agent: |
| | | AgentInsManager.instance.removeAgent(this); |
| | | |
| | | if (BloodBar != null) |
| | | { |
| | | BloodBar.Target = null; |
| | | Destroy(BloodBar.gameObject); |
| | | } |
| | | |
| | | configuration.SetHealth(0); |
| | | OnRemoved(); |
| | | |
| | |
| | | if (MoveStopTime > 0) |
| | | MoveStopTime = 0.0f; |
| | | |
| | | Poolable.TryPool(gameObject); |
| | | appearPS.SetActive(false); |
| | | diePS.SetActive(true); |
| | | |
| | | Invoke("DestroySelf", 1.0f); |
| | | } |
| | | |
| | | private void DestroySelf() |
| | | { |
| | | Destroy(gameObject); |
| | | } |
| | | |
| | | protected override void SetAgentStopBuff(buffinfo binfo) |