EffectData.cs 752 B

12345678910111213141516171819202122232425262728293031323334
  1. //------------------------------------------------------------
  2. // Game Framework
  3. // Copyright © 2013-2021 Jiang Yin. All rights reserved.
  4. // Homepage: https://gameframework.cn/
  5. // Feedback: mailto:ellan@gameframework.cn
  6. //------------------------------------------------------------
  7. using System;
  8. using UnityEngine;
  9. namespace MetaClient
  10. {
  11. [Serializable]
  12. public class EffectData : EntityData
  13. {
  14. [SerializeField]
  15. private float m_KeepTime = 0f;
  16. public EffectData(int entityId, int typeId)
  17. : base(entityId, typeId)
  18. {
  19. m_KeepTime = 3f;
  20. }
  21. public float KeepTime
  22. {
  23. get
  24. {
  25. return m_KeepTime;
  26. }
  27. }
  28. }
  29. }