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
7ce649fa
Commit
7ce649fa
authored
Sep 16, 2021
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复重新加载注册的事件回调bug
parent
62bcc43e
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
66 additions
and
0 deletions
+66
-0
FaceRecognitionCtr.ts
...Bundle/games/FaceRecognition/script/FaceRecognitionCtr.ts
+7
-0
BuyTicketCtr.ts
assets/sceneBundle/games/buyTicket/script/BuyTicketCtr.ts
+7
-0
ClassifyCtr_1.ts
...s/sceneBundle/games/classify-star/script/ClassifyCtr_1.ts
+6
-0
ClassifyCtr.ts
assets/sceneBundle/games/classify/script/ClassifyCtr.ts
+6
-0
FoodForThePartyCtr.ts
...Bundle/games/foodForTheParty/script/FoodForThePartyCtr.ts
+7
-0
PasswordMatrixCtr.ts
...neBundle/games/passwordMatrix/script/PasswordMatrixCtr.ts
+5
-0
QuickQuizCtr.ts
assets/sceneBundle/games/quickQuiz/script/QuickQuizCtr.ts
+5
-0
TransientCtr_1.ts
assets/sceneBundle/games/transient/script/TransientCtr_1.ts
+5
-0
UniqueCtr_1.ts
assets/sceneBundle/games/unique-1/script/UniqueCtr_1.ts
+6
-0
UniqueCtr_2.ts
assets/sceneBundle/games/unique-2/script/UniqueCtr_2.ts
+6
-0
UniqueCtr.ts
assets/sceneBundle/games/unique/script/UniqueCtr.ts
+6
-0
No files found.
assets/sceneBundle/games/FaceRecognition/script/FaceRecognitionCtr.ts
View file @
7ce649fa
...
...
@@ -138,6 +138,13 @@ export class FaceRecognitionCtr extends Component {
this
.
startGame
();
}
onDestroy
(){
director
.
off
(
"face_rg_anwser"
);
director
.
off
(
"answer_one"
);
director
.
off
(
"answer_two"
);
director
.
off
(
"continue_game"
);
}
update
(
deltaTime
:
number
)
{
// [4]
this
.
countdownTime
(
deltaTime
);
...
...
assets/sceneBundle/games/buyTicket/script/BuyTicketCtr.ts
View file @
7ce649fa
...
...
@@ -98,6 +98,13 @@ export class BuyTicketCtr extends Component {
this
.
gameStart
();
}
onDestroy
(){
director
.
off
(
"issue_start"
);
director
.
off
(
"issue_end"
);
director
.
off
(
"add_score"
);
director
.
off
(
"begin_countdown_end"
);
}
update
(
deltaTime
:
number
)
{
// [4]
this
.
countdownTime
(
deltaTime
);
...
...
assets/sceneBundle/games/classify-star/script/ClassifyCtr_1.ts
View file @
7ce649fa
...
...
@@ -132,6 +132,12 @@ export class ClassifyCtr_1 extends Component {
find
(
"Canvas"
)?.
getComponent
(
ClassifyGuideCtr_1
)?.
init
();
});
}
onDestroy
(){
director
.
off
(
"continue_game"
);
director
.
off
(
"begin_countdown_end"
);
}
resetGame
()
{
this
.
isPlayCountdownMus
=
false
;
this
.
succScoreLab
.
string
=
"通关≥"
+
this
.
succScore
+
"分"
;
...
...
assets/sceneBundle/games/classify/script/ClassifyCtr.ts
View file @
7ce649fa
...
...
@@ -124,6 +124,12 @@ export class ClassifyCtr extends Component {
find
(
"Canvas"
)?.
getComponent
(
ClassifyGuideCtr
)?.
init
();
});
}
onDestroy
(){
director
.
off
(
"continue_game"
);
director
.
off
(
"begin_countdown_end"
);
}
resetGame
()
{
this
.
isPlayCountdownMus
=
false
;
this
.
succScoreLab
.
string
=
"通关≥"
+
this
.
succScore
+
"分"
;
...
...
assets/sceneBundle/games/foodForTheParty/script/FoodForThePartyCtr.ts
View file @
7ce649fa
...
...
@@ -108,6 +108,13 @@ export class FoodForThePartyCtr extends Component {
this
.
gameStart
();
}
onDestroy
(){
director
.
off
(
"issue_end"
);
director
.
off
(
"continue_game"
);
director
.
off
(
"begin_countdown_end"
);
director
.
off
(
"add_score"
);
}
update
(
deltaTime
:
number
)
{
// [4]
this
.
runRoundCd
(
deltaTime
);
...
...
assets/sceneBundle/games/passwordMatrix/script/PasswordMatrixCtr.ts
View file @
7ce649fa
...
...
@@ -127,6 +127,11 @@ export class PasswordMatrixCtr extends Component {
this
.
gameStart
();
}
onDestroy
(){
director
.
off
(
"begin_countdown_end"
);
director
.
off
(
"continue_game"
);
}
gameStart
()
{
//测试
this
.
gameState
=
GAME_TYPE
.
READY
;
...
...
assets/sceneBundle/games/quickQuiz/script/QuickQuizCtr.ts
View file @
7ce649fa
...
...
@@ -80,6 +80,11 @@ export class QuickQuizCtr extends Component {
this
.
gameStart
();
}
onDestroy
(){
director
.
off
(
"continue_game"
);
director
.
off
(
"begin_countdown_end"
);
}
update
(
deltaTime
:
number
)
{
// [4]
this
.
countdownTime
(
deltaTime
);
...
...
assets/sceneBundle/games/transient/script/TransientCtr_1.ts
View file @
7ce649fa
...
...
@@ -223,6 +223,11 @@ export class TransientCtr_1 extends Component {
this
.
startGame
();
}
onDestroy
(){
director
.
off
(
"click_square"
);
director
.
off
(
"continue_game"
);
}
startGame
()
{
this
.
costTime
=
0
;
this
.
stopShake
();
...
...
assets/sceneBundle/games/unique-1/script/UniqueCtr_1.ts
View file @
7ce649fa
...
...
@@ -214,6 +214,12 @@ export class UniqueCtr_1 extends Component {
// [3]
}
onDestroy
(){
director
.
off
(
"click_item"
);
director
.
off
(
"continue_game"
);
director
.
off
(
"begin_countdown_end"
);
}
startGame
()
{
this
.
isPlayCountdownMus
=
false
;
this
.
curScore
=
0
;
...
...
assets/sceneBundle/games/unique-2/script/UniqueCtr_2.ts
View file @
7ce649fa
...
...
@@ -218,6 +218,12 @@ export class UniqueCtr_2 extends Component {
// [3]
}
onDestroy
(){
director
.
off
(
"click_item"
);
director
.
off
(
"continue_game"
);
director
.
off
(
"begin_countdown_end"
);
}
startGame
()
{
this
.
isPlayCountdownMus
=
false
;
this
.
curScore
=
0
;
...
...
assets/sceneBundle/games/unique/script/UniqueCtr.ts
View file @
7ce649fa
...
...
@@ -223,6 +223,12 @@ export class UniqueCtr extends Component {
// [3]
}
onDestroy
(){
director
.
off
(
"click_item"
);
director
.
off
(
"continue_game"
);
director
.
off
(
"begin_countdown_end"
);
}
startGame
()
{
this
.
isPlayCountdownMus
=
false
;
this
.
curScore
=
0
;
...
...
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