pull/2/head
jaysunxiao 2021-10-04 16:56:52 +08:00
parent 371b509691
commit fff704b57d
3 changed files with 13 additions and 1 deletions

View File

@ -4,4 +4,5 @@ const TimeUtils = preload("res://zfoo/scheduler/TimeUtils.gd")
static func test(): static func test():
print("-----------------------SchedulerBus-----------------------")
SchedulerBus.schedule(MySchedulerRunnable.new(), 5000) SchedulerBus.schedule(MySchedulerRunnable.new(), 5000)

View File

@ -0,0 +1,10 @@
extends Object
const IdUtils = preload("res://zfoo/util/IdUtils.gd")
static func test():
print("-----------------------IdUtils-----------------------")
print(IdUtils.getLocalIntId())
print(IdUtils.getLocalIntId())
print(IdUtils.getLocalIntId())

View File

@ -1,9 +1,10 @@
extends Node2D extends Node2D
const SchedulerTest = preload("res://zfoo/test/scheduler/SchedulerTest.gd") const SchedulerTest = preload("res://zfoo/test/scheduler/SchedulerTest.gd")
const IdUtilsTest = preload("res://zfoo/test/util/IdUtilsTest.gd")
func _ready(): func _ready():
SchedulerTest.test() SchedulerTest.test()
IdUtilsTest.test()