Spaces:
Running
Running
Corentin Cailleaud
commited on
Commit
•
664a01f
1
Parent(s):
3d3b96f
cubzh.lua
CHANGED
@@ -25,6 +25,9 @@ easy_onboarding.startOnboarding = function(self, config)
|
|
25 |
end
|
26 |
|
27 |
easy_onboarding.next = function(self)
|
|
|
|
|
|
|
28 |
steps[currentStep].stop(self, stopCallbackData)
|
29 |
currentStep = currentStep + 1
|
30 |
if not steps[currentStep] then
|
@@ -44,6 +47,7 @@ local onboardingConfig = {
|
|
44 |
|
45 |
data.listener = LocalEvent:Listen(LocalEvent.Name.PointerDrag, function()
|
46 |
Timer(1, function()
|
|
|
47 |
onboarding:next()
|
48 |
end)
|
49 |
data.listener:Remove()
|
|
|
25 |
end
|
26 |
|
27 |
easy_onboarding.next = function(self)
|
28 |
+
if not steps[currentStep] then
|
29 |
+
return
|
30 |
+
end
|
31 |
steps[currentStep].stop(self, stopCallbackData)
|
32 |
currentStep = currentStep + 1
|
33 |
if not steps[currentStep] then
|
|
|
47 |
|
48 |
data.listener = LocalEvent:Listen(LocalEvent.Name.PointerDrag, function()
|
49 |
Timer(1, function()
|
50 |
+
print("next")
|
51 |
onboarding:next()
|
52 |
end)
|
53 |
data.listener:Remove()
|