mirror of
https://github.com/unixtensor/Roblox-Elevator-Game.git
synced 2025-12-14 06:41:55 +00:00
add it and make some fix ups
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -37,10 +37,12 @@ function Signal:Fire<T...>(...: T...)
|
|||||||
for n: number = 1, #self.__callbacks__ do
|
for n: number = 1, #self.__callbacks__ do
|
||||||
self.__callbacks__[n](...)
|
self.__callbacks__[n](...)
|
||||||
end
|
end
|
||||||
self.__fired__ = false
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function Signal:Wait()
|
function Signal:Wait()
|
||||||
|
if self.__fired__ then
|
||||||
|
self.__fired__ = false
|
||||||
|
end
|
||||||
repeat
|
repeat
|
||||||
task.wait()
|
task.wait()
|
||||||
until self.__fired__
|
until self.__fired__
|
||||||
|
|||||||
Reference in New Issue
Block a user