TimeTask.cs 482 B

12345678910111213141516171819202122
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. public class TimeTask
  6. {
  7. public Action callBack;
  8. public float remainingTime;
  9. public float count;
  10. public float delay;
  11. public bool pause;
  12. public TimeTask(Action callBack, float delay, float count)
  13. {
  14. this.callBack = callBack;
  15. this.remainingTime = delay;
  16. this.count = count;
  17. this.delay = delay;
  18. this.pause = false;
  19. }
  20. }