Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
xiaoxiaole
Commits
f8f6bc52
Commit
f8f6bc52
authored
Mar 27, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码暂存
parent
a69ebbe6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
Element.ts
egret/src/something/class/Element.ts
+8
-3
No files found.
egret/src/something/class/Element.ts
View file @
f8f6bc52
...
@@ -45,7 +45,7 @@ export class Element extends eui.Component {
...
@@ -45,7 +45,7 @@ export class Element extends eui.Component {
fishCanEliFlag
:
boolean
;
fishCanEliFlag
:
boolean
;
cannoMoveClip
:
any
;
cannoMoveClip
:
any
;
cannoStat
:
number
[]
=
[
1
,
121
,
181
,
241
,
361
];
cannoStat
:
number
[]
=
[
1
,
61
,
121
,
181
,
241
,
361
];
//尝试设置碰撞状态,如果之前被特效集中,那么可以设置碰撞状态。碰撞状态之后可以准备消除。
//尝试设置碰撞状态,如果之前被特效集中,那么可以设置碰撞状态。碰撞状态之后可以准备消除。
setFishNebFlag
()
{
setFishNebFlag
()
{
...
@@ -219,6 +219,7 @@ export class Element extends eui.Component {
...
@@ -219,6 +219,7 @@ export class Element extends eui.Component {
}
}
changeShowCannoStat
(){
changeShowCannoStat
(){
this
.
cannolab
.
text
=
this
.
_cannoStat
+
""
;
this
.
cannolab
.
text
=
this
.
_cannoStat
+
""
;
this
.
cannoMoveClip
.
gotoAndPlay
(
this
.
cannoStat
[
this
.
_cannoStat
]);
}
}
checkCannoStat
(){
checkCannoStat
(){
if
(
this
.
_cannoStat
==
3
){
if
(
this
.
_cannoStat
==
3
){
...
@@ -508,7 +509,11 @@ export class Element extends eui.Component {
...
@@ -508,7 +509,11 @@ export class Element extends eui.Component {
* @param source
* @param source
*/
*/
listenCn
(){
listenCn
(){
console
.
log
(
"炮台充能"
,
this
.
cannoMoveClip
.
currentFrame
);
var
statend
=
this
.
cannoStat
[
this
.
_cannoStat
+
1
];
if
(
this
.
cannoMoveClip
.
currentFrame
>=
statend
){
console
.
log
(
"炮台阶段动画播放完毕"
,
this
.
cannoMoveClip
.
currentFrame
);
this
.
cannoMoveClip
.
stop
();
}
}
}
/**
/**
* 炮台动画播放一次完毕
* 炮台动画播放一次完毕
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment