EffectPlayInfo.cs 613 B

123456789101112131415161718192021222324252627
  1. using CommonAI.Zone;
  2. using CommonAI.ZoneClient;
  3. using Pathfinding.ClipperLib;
  4. using System;
  5. using UnityEngine;
  6. public class EffectPlayInfo
  7. {
  8. public uint Id { get; private set; }
  9. public float EndTime { get; private set; }
  10. public GameObject GameObj { get; private set; }
  11. public EffectPlayInfo() { }
  12. public void Reset(GameObject go, float endtime)
  13. {
  14. Id = IdGen();
  15. EndTime = endtime;
  16. GameObj = go;
  17. }
  18. private static uint _id = 0;
  19. private static uint IdGen()
  20. {
  21. return ++_id; ;
  22. }
  23. public readonly static float TIME_FOREVER = 86400f;
  24. }