DefendMonster.cs 779 B

1234567891011121314151617181920212223242526272829303132333435
  1. using Adon.Game.BO;
  2. using AdonGameKit;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using UnityEngine;
  6. /// <summary>
  7. /// 怪物防御体
  8. /// </summary>
  9. public class DefendMonster : MonoBehaviour
  10. {
  11. public BaseMonsterAdon m_BaseMonsterAdon;
  12. public Animator m_Animator;
  13. /// <summary>
  14. /// 防御碰撞特效
  15. /// </summary>
  16. public Transform m_DefendHitObj;
  17. private void Awake()
  18. {
  19. //m_Animator = GetComponent<Animator>();
  20. }
  21. public void SetMonster(BaseMonsterAdon monster)
  22. {
  23. m_BaseMonsterAdon = monster;
  24. }
  25. ///// <summary>
  26. ///// 防御碰撞触发事件
  27. ///// </summary>
  28. ///// <param name="collision"></param>
  29. //void OnTriggerEnter(Collider collision)
  30. //{
  31. //}
  32. }