101计时抽象基类.md 808 B

这次开发的定时任务类型,一共有三种,这是第一种:

![[Pasted image 20220730121448.png]]

第二种:

![[Pasted image 20220730121806.png]]

第三种:

![[Pasted image 20220730121826.png]]

先基于标准库,创建一个新项目;

![[Pasted image 20220730122143.png]]

命名弄好,然后创建即可;

![[Pasted image 20220730122239.png]]

具体的配置,可以参考这个教程:

[[Unity安装及.net服务器环境配置]]

![[Pasted image 20220730122531.png]]

在项目新建计时任务抽象基类;

![[Pasted image 20220731165100.png]]

然后,完善一下,先写几个,需要用到的抽象方法:创建定时任务、删除定时任务;

![[Pasted image 20220731165655.png]]

还有重置定时器相关;

![[Pasted image 20220731165858.png]]