DemonicGiant.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using Sirenix.OdinInspector;
  5. public class DemonicGiant : Demonic
  6. {
  7. [LabelText("ÉúÃüתÉ˺¦±¶ÂÊ")] public float scale = 0.2f;
  8. //public BuffAura ba;
  9. //public override void Attack_summon()
  10. //{
  11. // base.Attack_summon();
  12. // if (GameManager.instance.demonicAttributes[id].trigger1)
  13. // {
  14. // GameObject obj = PoolManager.Instantiate(Resources.Load<GameObject>("Prefab/Meteorite"));
  15. // int faceDir = bodyTrans.localScale.x >= 0 ? 1 : -1;
  16. // obj.GetComponent<Meteorite>().Init(transform.position + Vector3.left * faceDir * 3, this);
  17. // }
  18. //}
  19. public override void AfterInit()
  20. {
  21. base.AfterInit();
  22. ownDamageScale += (int)(/*GameManager.instance.*/totalHp * scale);
  23. //if (GameManager.instance.demonicAttributes[id].trigger0)
  24. //{
  25. // ownDamageScale += attributeStatus.resistances.armor * 5;
  26. //}
  27. //for (int i = 0; i < attackController.attackMethod_summon.Length; i++)
  28. //{
  29. // AttackInfo attackInfo = attackController.attackMethod_summon[i].attackInfo;
  30. // attackInfo.blowUp.landingDamageRate += attackInfo.blowUp.landingDamageRate * GameManager.instance.demonicAttributes[id].blowUpDamage/100;
  31. // attackInfo.blowUp.time += attackInfo.blowUp.time * GameManager.instance.demonicAttributes[id].blowUpStunTime / 100;
  32. //}
  33. }
  34. //public override void Init()
  35. //{
  36. // base.Init();
  37. // if (GameManager.instance.demonicAttributes[id].trigger2)
  38. // {
  39. // ba.buff.value = attributeStatus.resistances.armor * (10 + GameManager.instance.myTreasuresTag[3]);
  40. // ba.gameObject.SetActive(true);
  41. // }
  42. // else ba.gameObject.SetActive(false);
  43. //}
  44. }