Skip to content

Commit 112a26e

Browse files
committed
Back out changes to tween example
1 parent bbff0a4 commit 112a26e

File tree

1 file changed

+3
-22
lines changed

1 file changed

+3
-22
lines changed

examples/tween.html

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -30,32 +30,13 @@
3030
</pc-entity>
3131
<!-- Star -->
3232
<pc-entity name="star"
33-
onpointerenter="this.entity.script.tweener.play(2)"
34-
onpointerleave="this.entity.script.tweener.play(3)"
35-
onpointerdown="this.entity.script.tweener.play(0);this.entity.script.tweener.play(1)">
33+
onpointerenter="this.entity.script.tweener.play(0)"
34+
onpointerleave="this.entity.script.tweener.play(1)"
35+
onpointerdown="this.entity.script.tweener.play(2)">
3636
<pc-model asset="star"></pc-model>
3737
<pc-scripts>
3838
<pc-script name="tweener" attributes='{
3939
"tweens": [
40-
{
41-
"path": "localPosition",
42-
"start": [0, 0, 0, 0],
43-
"end": [0, 0.2, 0, 0],
44-
"duration": 1500,
45-
"easingFunction": "Sinusoidal",
46-
"easingType": "InOut",
47-
"yoyo": true,
48-
"repeat": -1
49-
}, {
50-
"path": "localEulerAngles",
51-
"start": [0, 0, 0, 0],
52-
"end": [0, 10, 0, 0],
53-
"duration": 2000,
54-
"easingFunction": "Sinusoidal",
55-
"easingType": "InOut",
56-
"yoyo": true,
57-
"repeat": -1
58-
},
5940
{
6041
"path": "localScale",
6142
"start": [1, 1, 1, 0],

0 commit comments

Comments
 (0)