Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
M
MusicBigWatermelon
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
MusicBigWatermelon
Commits
e84bc359
Commit
e84bc359
authored
Aug 02, 2021
by
王雪伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加入上报接口
parent
9ad959bd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
1 deletion
+40
-1
GameController.cs
Assets/Scripts/Controllers/GameController.cs
+17
-1
HomeInfoControl.cs
Assets/Scripts/Main/HomeInfoControl.cs
+5
-0
SongBean.cs
Assets/Scripts/Model/SongBean.cs
+7
-0
SongBean.cs.meta
Assets/Scripts/Model/SongBean.cs.meta
+11
-0
No files found.
Assets/Scripts/Controllers/GameController.cs
View file @
e84bc359
...
...
@@ -6,7 +6,7 @@ using UnityEngine;
public
class
GameController
:
MonoBehaviour
{
private
static
GameController
Instance
;
public
static
GameController
GetInstance
()
public
static
GameController
GetInstance
()
{
if
(
Instance
==
null
)
{
...
...
@@ -75,6 +75,22 @@ public class GameController : MonoBehaviour
}));
}
/// <summary>
/// 合成歌曲上报
/// </summary>
public
void
GetNoteCompleted
(
int
song_id
)
{
Dictionary
<
string
,
object
>
paras
=
new
Dictionary
<
string
,
object
>();
paras
.
Add
(
"song_id"
,
song_id
);
HttpTool
.
Instance
.
_Get
(
"app/v1/watermelon/note_completed"
,
paras
,
new
Action
<
EmptyBean
>((
result
)
=>
{
}),
new
Action
<
string
,
string
>((
code
,
msg
)
=>
{
Debug
.
unityLogger
.
Log
(
"合成歌曲上报 "
+
code
+
" msg "
+
msg
);
}));
}
}
Assets/Scripts/Main/HomeInfoControl.cs
View file @
e84bc359
...
...
@@ -28,9 +28,14 @@ public class HomeInfoControl : MonoBehaviour
//GetHomeInfo();
//获取下一组要生成的水果的音符
//GameController.GetInstance().GetNextNoteList(0);
//
UIMgr
.
Getinstance
().
ShowPanel
<
MainPanel
>(
E_Layer
.
mid
);
UIMgr
.
Getinstance
().
ShowPanel
<
TouchPanel
>(
E_Layer
.
bot
);
GameController
.
GetInstance
().
GetSongsList
(
3
);
GameController
.
GetInstance
().
GetWithdrawList
(
3
);
}
...
...
Assets/Scripts/Model/SongBean.cs
0 → 100644
View file @
e84bc359
using
System
;
[Serializable]
public
class
SongBean
{
}
Assets/Scripts/Model/SongBean.cs.meta
0 → 100644
View file @
e84bc359
fileFormatVersion: 2
guid: 58243d454dd78024ab8f6e281b70a2ea
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
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