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
0f89eb5d
Commit
0f89eb5d
authored
Jan 20, 2020
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
fc6c3052
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
getRedBombAward.ts
egret/src/getRedBombAward.ts
+2
-1
MainScene.ts
egret/src/mainScene/MainScene.ts
+1
-0
AiControl.ts
egret/src/something/logic/AiControl.ts
+2
-0
No files found.
egret/src/getRedBombAward.ts
View file @
0f89eb5d
import
{
NetManager
}
from
"../libs/tw/manager/NetManager"
;
import
{
NetManager
}
from
"../libs/tw/manager/NetManager"
;
import
{
DataManager
}
from
"../libs/tw/manager/DataManager"
;
import
{
DataManager
}
from
"../libs/tw/manager/DataManager"
;
import
SceneCtrl
from
"../libs/new_wx/ctrls/sceneCtrl"
;
/**
/**
* callback回调1是有奖,0是没有奖或者风控
* callback回调1是有奖,0是没有奖或者风控
...
@@ -16,7 +17,7 @@ export default (callback?) => {
...
@@ -16,7 +17,7 @@ export default (callback?) => {
// else {
// else {
// callback(0);
// callback(0);
// }
// }
SceneCtrl
.
instance
.
updateScene
();
}
}
// else {
// else {
// callback(0);
// callback(0);
...
...
egret/src/mainScene/MainScene.ts
View file @
0f89eb5d
...
@@ -3101,6 +3101,7 @@ export default class MainScene extends Scene {
...
@@ -3101,6 +3101,7 @@ export default class MainScene extends Scene {
NetManager
.
ins
.
hc_redBombAward
((
success
)
=>
{
NetManager
.
ins
.
hc_redBombAward
((
success
)
=>
{
// if (success) // TODO 无论成功失败都弹,失败则为无奖励
// if (success) // TODO 无论成功失败都弹,失败则为无奖励
this
.
redBombPanelMark
=
true
;
this
.
redBombPanelMark
=
true
;
SceneCtrl
.
instance
.
updateScene
();
});
});
}
}
}
}
...
...
egret/src/something/logic/AiControl.ts
View file @
0f89eb5d
...
@@ -20,6 +20,7 @@ import { FesRedShootAni } from "../anisCall/FesRedShootAni";
...
@@ -20,6 +20,7 @@ import { FesRedShootAni } from "../anisCall/FesRedShootAni";
import
{
FesRedShootAni2
}
from
"../anisCall/FesRedShootAni2"
;
import
{
FesRedShootAni2
}
from
"../anisCall/FesRedShootAni2"
;
import
{
loadSvga
}
from
"../../loadSvga"
;
import
{
loadSvga
}
from
"../../loadSvga"
;
import
getResPath
from
"../../../libs/new_tc/getResPath"
;
import
getResPath
from
"../../../libs/new_tc/getResPath"
;
import
SceneCtrl
from
"../../../libs/new_wx/ctrls/sceneCtrl"
;
//孵鸡的数量
//孵鸡的数量
const
chickenNum
:
number
=
4
;
const
chickenNum
:
number
=
4
;
...
@@ -130,6 +131,7 @@ export class AiControl {
...
@@ -130,6 +131,7 @@ export class AiControl {
if
(
!
six
.
length
)
{
if
(
!
six
.
length
)
{
NetManager
.
ins
.
hc_redBombAward
((
success
)
=>
{
NetManager
.
ins
.
hc_redBombAward
((
success
)
=>
{
if
(
success
)
thisObj
.
redBombPanelMark
=
true
;
if
(
success
)
thisObj
.
redBombPanelMark
=
true
;
SceneCtrl
.
instance
.
updateScene
();
});
});
callback
();
callback
();
return
return
...
...
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