RepeatBattleSoundInfo.cs 689 B

123456789101112131415161718192021222324252627282930313233343536
  1. using UnityEngine;
  2. using System.Collections;
  3. public class RepeatBattleSoundInfo
  4. {
  5. public string soundName;
  6. public float interval;
  7. public float continueTime;
  8. public float TimevalFromFirstPlay
  9. {
  10. get;
  11. set;
  12. }
  13. public float TimevalFromLastPlay
  14. {
  15. get;
  16. set;
  17. }
  18. public bool HasPlayed
  19. {
  20. get;
  21. set;
  22. }
  23. public RepeatBattleSoundInfo(string name, float continueTime, float interval)
  24. {
  25. this.soundName = name;
  26. this.continueTime = continueTime;
  27. this.interval = interval;
  28. HasPlayed = false;
  29. TimevalFromFirstPlay = 0f;
  30. TimevalFromLastPlay = 0f;
  31. }
  32. }