lol
This commit is contained in:
@@ -4,17 +4,16 @@
|
||||
|
||||
function onCreate(self)
|
||||
Debug.Log("Spinner created, initial rotY: " .. self.rotationY)
|
||||
Cutscene.Play("spin_loop", {loop = true})
|
||||
end
|
||||
|
||||
function onInteract(self)
|
||||
if Cutscene.IsPlaying() then
|
||||
Cutscene.Stop()
|
||||
if Animation.IsPlaying("anim_spinner") then
|
||||
Animation.Stop("anim_spinner")
|
||||
setStatus("Spinner stopped!")
|
||||
Debug.Log("Spinner stopped at rotY=" .. Entity.GetRotationY(self)
|
||||
.. " frame=" .. Timer.GetFrameCount())
|
||||
else
|
||||
Cutscene.Play("spin_loop", {loop = true})
|
||||
Animation.Play("anim_spinner", {loop = true})
|
||||
setStatus("Spinner started!")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user