Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
aglitchman committed Jan 30, 2024
1 parent 5b5c0d4 commit 2c6df5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion example/main.script
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ function init(self)
-- If `mraid` is available, the game is ran in the webview of Unity Ads or other mraid-based ad system.
if mraid then
mraid.set_listener(mraid_callback)
toggle_music(self, mraid.is_viewable())
else
toggle_music(self, true)
end
toggle_music(self, mraid and mraid.is_viewable() or true)

go.set("/music", "euler.z", 20)
go.animate("/music", "euler.z", go.PLAYBACK_LOOP_PINGPONG, -20, go.EASING_INCUBIC, 0.7)
Expand Down

0 comments on commit 2c6df5c

Please sign in to comment.