Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LWD_3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
LWD_3
Commits
2c654327
Commit
2c654327
authored
Jun 30, 2022
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
803af643
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
LWD_3.js
assets/LWD_3/scene/LWD_3.js
+2
-1
utils.js
assets/LWD_3/script/common/utils.js
+4
-1
No files found.
assets/LWD_3/scene/LWD_3.js
View file @
2c654327
import
{
onHomeworkFinish
}
from
"
../script/common/util
"
;
/**
* 游戏主逻辑
*/
import
{
onHomeworkFinish
}
from
"
../script/common/utils
"
;
var
game
=
cc
.
Class
({
extends
:
cc
.
Component
,
...
...
assets/LWD_3/script/common/utils.js
View file @
2c654327
window
.
LWD_3
=
window
.
LWD_3
||
{};
// 全局
LWD_3
.
utils
=
{
// 范围随机
randFromTo
:
function
(
_min
,
_max
)
{
...
...
@@ -236,3 +238,4 @@ export function onHomeworkFinish(callback = null, data = null) {
console
.
log
(
'
onHomeworkFinish
'
,
data
);
}
}
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