Skip to content

Commit bf55f19

Browse files
committed
Avoid to use a timer
1 parent 00e62bd commit bf55f19

File tree

1 file changed

+38
-68
lines changed

1 file changed

+38
-68
lines changed

examples/3d-car-coin-hunt/3d-car-coin-hunt.json

Lines changed: 38 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -4776,20 +4776,25 @@
47764776
"conditions": [
47774777
{
47784778
"type": {
4779-
"value": "CompareObjectTimer"
4779+
"inverted": true,
4780+
"value": "Tween::Exists"
47804781
},
47814782
"parameters": [
4782-
"Object",
4783-
"\"Animate\"",
4784-
">=",
4785-
"0"
4783+
"Icon",
4784+
"Tween",
4785+
"\"Rotate\""
47864786
]
47874787
},
47884788
{
47894789
"type": {
4790-
"value": "BuiltinCommonInstructions::Once"
4790+
"inverted": true,
4791+
"value": "Tween::Exists"
47914792
},
4792-
"parameters": []
4793+
"parameters": [
4794+
"Icon",
4795+
"Tween",
4796+
"\"RotateBack\""
4797+
]
47934798
}
47944799
],
47954800
"actions": [
@@ -4814,20 +4819,13 @@
48144819
"conditions": [
48154820
{
48164821
"type": {
4817-
"value": "CompareObjectTimer"
4822+
"value": "Tween::HasFinished"
48184823
},
48194824
"parameters": [
4820-
"Object",
4821-
"\"Animate\"",
4822-
">=",
4823-
"2"
4825+
"Icon",
4826+
"Tween",
4827+
"\"RotateBack\""
48244828
]
4825-
},
4826-
{
4827-
"type": {
4828-
"value": "BuiltinCommonInstructions::Once"
4829-
},
4830-
"parameters": []
48314829
}
48324830
],
48334831
"actions": [
@@ -4839,11 +4837,21 @@
48394837
"Icon",
48404838
"Tween",
48414839
"\"Rotate\"",
4842-
"-8",
4840+
"8",
48434841
"\"easeInOutQuad\"",
48444842
"2",
48454843
""
48464844
]
4845+
},
4846+
{
4847+
"type": {
4848+
"value": "Tween::RemoveTween"
4849+
},
4850+
"parameters": [
4851+
"Icon",
4852+
"Tween",
4853+
"\"RotateBack\""
4854+
]
48474855
}
48484856
]
48494857
},
@@ -4852,76 +4860,38 @@
48524860
"conditions": [
48534861
{
48544862
"type": {
4855-
"value": "CompareObjectTimer"
4863+
"value": "Tween::HasFinished"
48564864
},
48574865
"parameters": [
4858-
"Object",
4859-
"\"Animate\"",
4860-
">=",
4861-
"4"
4866+
"Icon",
4867+
"Tween",
4868+
"\"Rotate\""
48624869
]
4863-
},
4864-
{
4865-
"type": {
4866-
"value": "BuiltinCommonInstructions::Once"
4867-
},
4868-
"parameters": []
48694870
}
48704871
],
48714872
"actions": [
4872-
{
4873-
"type": {
4874-
"value": "ResetObjectTimer"
4875-
},
4876-
"parameters": [
4877-
"Object",
4878-
"\"Animate\""
4879-
]
4880-
},
48814873
{
48824874
"type": {
48834875
"value": "Tween::TweenBehavior::AddObjectAngleTween2"
48844876
},
48854877
"parameters": [
48864878
"Icon",
48874879
"Tween",
4888-
"\"Rotate\"",
4889-
"8",
4880+
"\"RotateBack\"",
4881+
"-8",
48904882
"\"easeInOutQuad\"",
48914883
"2",
48924884
""
48934885
]
4894-
}
4895-
]
4896-
}
4897-
],
4898-
"parameters": [
4899-
{
4900-
"description": "Object",
4901-
"name": "Object",
4902-
"supplementaryInformation": "ScreenOrientationChecker::ScreenOrientationChecker",
4903-
"type": "object"
4904-
}
4905-
],
4906-
"objectGroups": []
4907-
},
4908-
{
4909-
"fullName": "",
4910-
"functionType": "Action",
4911-
"name": "onCreated",
4912-
"sentence": "",
4913-
"events": [
4914-
{
4915-
"type": "BuiltinCommonInstructions::Standard",
4916-
"conditions": [],
4917-
"actions": [
4886+
},
49184887
{
49194888
"type": {
4920-
"value": "ResetObjectTimer"
4889+
"value": "Tween::RemoveTween"
49214890
},
49224891
"parameters": [
4923-
"Object",
4924-
"\"Animate\""
4892+
"Icon",
4893+
"Tween",
4894+
"\"Rotate\""
49254895
]
49264896
}
49274897
]

0 commit comments

Comments
 (0)