Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
interactiveGames_Level
Project
Project
Details
Activity
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
xuxing@jiuaoedu.com
interactiveGames_Level
Commits
cac515e4
Commit
cac515e4
authored
Feb 11, 2022
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
环形幻方好了
parent
93316623
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
RingSumCtr.ts
assets/sceneBundle/games/ringSum/script/RingSumCtr.ts
+7
-1
No files found.
assets/sceneBundle/games/ringSum/script/RingSumCtr.ts
View file @
cac515e4
...
@@ -10,6 +10,7 @@ import { BeginCountdownView } from '../../commonView/script/BeginCountdownView';
...
@@ -10,6 +10,7 @@ import { BeginCountdownView } from '../../commonView/script/BeginCountdownView';
import
{
ChallengeFailView
}
from
'../../commonView/script/ChallengeFailView'
;
import
{
ChallengeFailView
}
from
'../../commonView/script/ChallengeFailView'
;
import
{
ChallengeSuccView
}
from
'../../commonView/script/ChallengeSuccView'
;
import
{
ChallengeSuccView
}
from
'../../commonView/script/ChallengeSuccView'
;
import
{
GameDescView
}
from
'../../commonView/script/GameDescView'
;
import
{
GameDescView
}
from
'../../commonView/script/GameDescView'
;
import
{
SwitchOkView
}
from
'../../commonView/script/SwitchOkView'
;
import
{
RingSumCfg
,
RS_LV_1
}
from
'./RingSumCfg'
;
import
{
RingSumCfg
,
RS_LV_1
}
from
'./RingSumCfg'
;
import
{
RingSumCircle
}
from
'./RingSumCircle'
;
import
{
RingSumCircle
}
from
'./RingSumCircle'
;
import
{
RingSumItem
,
RS_ITEM_TYPE
}
from
'./RingSumItem'
;
import
{
RingSumItem
,
RS_ITEM_TYPE
}
from
'./RingSumItem'
;
...
@@ -209,10 +210,15 @@ export class RingSumCtr extends Component {
...
@@ -209,10 +210,15 @@ export class RingSumCtr extends Component {
gameEnd
(
isWin
:
boolean
)
{
gameEnd
(
isWin
:
boolean
)
{
this
.
gameState
=
GAME_STATE
.
END
;
this
.
gameState
=
GAME_STATE
.
END
;
if
(
isWin
)
{
if
(
isWin
)
{
viewMgr
.
openView
(
VIEW_DEF
.
ChallengeSuccView
,
(
node
)
=>
{
AudioMgr
.
playEffect
(
succMus
);
AudioMgr
.
playEffect
(
succMus
);
viewMgr
.
openView
(
VIEW_DEF
.
SwitchOkView
,
(
node
)
=>
{
node
.
getComponent
(
SwitchOkView
)
!
.
endCb
=
()
=>
{
viewMgr
.
openView
(
VIEW_DEF
.
ChallengeSuccView
,
(
node
)
=>
{
node
?.
getComponent
(
ChallengeSuccView
)?.
init
();
node
?.
getComponent
(
ChallengeSuccView
)?.
init
();
},
VIEW_INDEX
.
TOP
);
},
VIEW_INDEX
.
TOP
);
};
node
.
getComponent
(
SwitchOkView
)?.
init
(
1.5
);
});
}
}
else
{
else
{
viewMgr
.
openView
(
VIEW_DEF
.
ChallengeFailView
,
(
node
)
=>
{
viewMgr
.
openView
(
VIEW_DEF
.
ChallengeFailView
,
(
node
)
=>
{
...
...
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