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