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
ddc84216
Commit
ddc84216
authored
Aug 03, 2021
by
LiLiuZhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
e2c8af77
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
1646 additions
and
25 deletions
+1646
-25
UnityPhoneUtils.cs
Assets/Base/UnityTool/UnityPhoneUtils.cs
+1
-1
BasePanel.cs
Assets/FunScripts/UI/BasePanel.cs
+1
-1
UIMgr.cs
Assets/FunScripts/UI/UIMgr.cs
+6
-0
1.prefab
Assets/Resources/Fruits/1.prefab
+1
-1
10.prefab
Assets/Resources/Fruits/10.prefab
+1
-1
11.prefab
Assets/Resources/Fruits/11.prefab
+1
-1
2.prefab
Assets/Resources/Fruits/2.prefab
+1
-1
3.prefab
Assets/Resources/Fruits/3.prefab
+1
-1
6.prefab
Assets/Resources/Fruits/6.prefab
+1
-1
7.prefab
Assets/Resources/Fruits/7.prefab
+1
-1
8.prefab
Assets/Resources/Fruits/8.prefab
+1
-1
9.prefab
Assets/Resources/Fruits/9.prefab
+1
-1
Canvas.prefab
Assets/Resources/UI/Canvas.prefab
+1
-1
Game.unity
Assets/Scenes/Game.unity
+1602
-2
GameController.cs
Assets/Scripts/Controllers/GameController.cs
+3
-1
HomeInfoControl.cs
Assets/Scripts/Main/HomeInfoControl.cs
+1
-7
MainPanel.cs
Assets/Scripts/Panel/MainPanel.cs
+6
-1
MusicPanel.cs
Assets/Scripts/Panel/MusicPanel.cs
+1
-1
TouchPanel.cs
Assets/Scripts/Panel/TouchPanel.cs
+5
-0
TagManager.asset
ProjectSettings/TagManager.asset
+10
-1
No files found.
Assets/Base/UnityTool/UnityPhoneUtils.cs
View file @
ddc84216
...
...
@@ -82,7 +82,7 @@ public class UnityPhoneUtils
if
(
Constant
.
Instance
.
device
.
Equals
(
""
))
{
#if UNITY_EDITOR
Constant
.
Instance
.
device
=
"debug_test_00
2
"
;
Constant
.
Instance
.
device
=
"debug_test_00
3
"
;
#elif UNITY_ANDROID
Constant
.
Instance
.
device
=
GetPhoneUtil
().
Call
<
string
>(
"getDeviceId"
,
GetActivity
());
#elif UNITY_IOS
...
...
Assets/FunScripts/UI/BasePanel.cs
View file @
ddc84216
...
...
@@ -8,7 +8,7 @@ public abstract class BasePanel : MonoBehaviour
{
private
Dictionary
<
string
,
List
<
UIBehaviour
>>
controlsdic
=
new
Dictionary
<
string
,
List
<
UIBehaviour
>>();
private
Dictionary
<
string
,
SpriteRenderer
>
spritesdic
=
new
Dictionary
<
string
,
SpriteRenderer
>();
protected
void
Awake
()
protected
v
irtual
v
oid
Awake
()
{
GetAllControls
<
Button
>();
GetAllControls
<
Text
>();
...
...
Assets/FunScripts/UI/UIMgr.cs
View file @
ddc84216
...
...
@@ -159,6 +159,12 @@ public class UIMgr : BaseMgr<UIMgr>
panel
.
OnInit
(
data
);
}
public
void
RegisterPanel
<
T
>(
T
panel
)
where
T
:
BasePanel
{
CheckInit
();
paneldic
.
Add
(
typeof
(
T
).
ToString
(),
panel
);
panel
.
OnInit
();
}
public
void
HidePanel
<
T
>(
string
name
=
null
)
where
T
:
BasePanel
{
CheckInit
();
...
...
Assets/Resources/Fruits/1.prefab
View file @
ddc84216
...
...
@@ -13,7 +13,7 @@ GameObject:
-
component
:
{
fileID
:
3345829442083138011
}
-
component
:
{
fileID
:
6553566031201155031
}
-
component
:
{
fileID
:
2145990231334404781
}
m_Layer
:
8
m_Layer
:
5
m_Name
:
1
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
...
...
Assets/Resources/Fruits/10.prefab
View file @
ddc84216
...
...
@@ -13,7 +13,7 @@ GameObject:
-
component
:
{
fileID
:
630247405110731201
}
-
component
:
{
fileID
:
6849236633244900257
}
-
component
:
{
fileID
:
3124930929499599388
}
m_Layer
:
8
m_Layer
:
5
m_Name
:
10
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
...
...
Assets/Resources/Fruits/11.prefab
View file @
ddc84216
...
...
@@ -13,7 +13,7 @@ GameObject:
-
component
:
{
fileID
:
833979182016893467
}
-
component
:
{
fileID
:
5079638499583880063
}
-
component
:
{
fileID
:
9154449643341698626
}
m_Layer
:
8
m_Layer
:
5
m_Name
:
11
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
...
...
Assets/Resources/Fruits/2.prefab
View file @
ddc84216
...
...
@@ -13,7 +13,7 @@ GameObject:
-
component
:
{
fileID
:
1461700656335496196
}
-
component
:
{
fileID
:
8817070787098627715
}
-
component
:
{
fileID
:
6692804851037463569
}
m_Layer
:
8
m_Layer
:
5
m_Name
:
2
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
...
...
Assets/Resources/Fruits/3.prefab
View file @
ddc84216
...
...
@@ -13,7 +13,7 @@ GameObject:
-
component
:
{
fileID
:
1210833349443804168
}
-
component
:
{
fileID
:
1326560321718115351
}
-
component
:
{
fileID
:
8099278256924804017
}
m_Layer
:
8
m_Layer
:
5
m_Name
:
3
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
...
...
Assets/Resources/Fruits/6.prefab
View file @
ddc84216
...
...
@@ -13,7 +13,7 @@ GameObject:
-
component
:
{
fileID
:
6952006078027700734
}
-
component
:
{
fileID
:
1295092757633459469
}
-
component
:
{
fileID
:
7692154166495186106
}
m_Layer
:
8
m_Layer
:
5
m_Name
:
6
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
...
...
Assets/Resources/Fruits/7.prefab
View file @
ddc84216
...
...
@@ -13,7 +13,7 @@ GameObject:
-
component
:
{
fileID
:
7338134519430711551
}
-
component
:
{
fileID
:
1599896523001130603
}
-
component
:
{
fileID
:
7858533640022726427
}
m_Layer
:
8
m_Layer
:
5
m_Name
:
7
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
...
...
Assets/Resources/Fruits/8.prefab
View file @
ddc84216
...
...
@@ -13,7 +13,7 @@ GameObject:
-
component
:
{
fileID
:
2590086187272796619
}
-
component
:
{
fileID
:
4987548872815581204
}
-
component
:
{
fileID
:
9071176785666683247
}
m_Layer
:
8
m_Layer
:
5
m_Name
:
8
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
...
...
Assets/Resources/Fruits/9.prefab
View file @
ddc84216
...
...
@@ -13,7 +13,7 @@ GameObject:
-
component
:
{
fileID
:
3087729805361338426
}
-
component
:
{
fileID
:
6055266708282932652
}
-
component
:
{
fileID
:
5458731382721637647
}
m_Layer
:
8
m_Layer
:
5
m_Name
:
9
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
...
...
Assets/Resources/UI/Canvas.prefab
View file @
ddc84216
...
...
@@ -170,7 +170,7 @@ Canvas:
m_SortingBucketNormalizedSize
:
0
m_AdditionalShaderChannelsFlag
:
0
m_SortingLayerID
:
0
m_SortingOrder
:
0
m_SortingOrder
:
1
m_TargetDisplay
:
0
---
!u!114
&1071024550456484696
MonoBehaviour
:
...
...
Assets/Scenes/Game.unity
View file @
ddc84216
This diff is collapsed.
Click to expand it.
Assets/Scripts/Controllers/GameController.cs
View file @
ddc84216
...
...
@@ -12,11 +12,13 @@ public class GameController : MonoBehaviour
{
GameObject
obj
=
new
GameObject
(
"GameController"
);
Instance
=
obj
.
AddComponent
<
GameController
>();
DontDestroyOnLoad
(
obj
)
;
Instance
.
Fruits
=
new
GameObject
(
"Fruits"
).
transform
;
}
return
Instance
;
}
public
Transform
Fruits
;
//准备销毁的水果集合
public
LinkedList
<
GameObject
>
TempList
=
new
LinkedList
<
GameObject
>();
...
...
Assets/Scripts/Main/HomeInfoControl.cs
View file @
ddc84216
...
...
@@ -25,15 +25,9 @@ public class HomeInfoControl : MonoBehaviour
#if UNITY_EDITOR
AppConfig
.
Instance
.
InitProgect
(
true
);
#endif
//GetHomeInfo();
//获取下一组要生成的水果的音符
//GameController.GetInstance().GetNextNoteList(0);
//
UIMgr
.
Getinstance
().
ShowPanel
<
MainPanel
>(
E_Layer
.
mid
);
UIMgr
.
Getinstance
().
ShowPanel
<
TouchPanel
>(
E_Layer
.
bot
);
EventCenter
.
Getinstance
().
EventTrigger
(
"RegisterPanel"
);
//GameController.GetInstance().GetSongsList(0);
GameController
.
GetInstance
().
GetWithdrawList
(
1
);
}
...
...
Assets/Scripts/Panel/MainPanel.cs
View file @
ddc84216
...
...
@@ -6,6 +6,11 @@ using UnityEngine.UI;
public
class
MainPanel
:
BasePanel
{
protected
override
void
Awake
()
{
base
.
Awake
();
EventCenter
.
Getinstance
().
AddUpdateListener
(
"RegisterPanel"
,()=>
{
UIMgr
.
Getinstance
().
RegisterPanel
<
MainPanel
>(
this
);
});
}
public
override
void
OnHide
(
object
data
=
null
)
{
...
...
@@ -20,7 +25,7 @@ public class MainPanel : BasePanel
{
}
p
rivate
void
GetHomeInfo
()
p
ublic
void
GetHomeInfo
()
{
HttpTool
.
Instance
.
_Get
(
"app/v1/watermelon/info"
,
null
,
new
Action
<
WatermelonInfoBean
>((
result
)
=>
{
...
...
Assets/Scripts/Panel/MusicPanel.cs
View file @
ddc84216
...
...
@@ -14,7 +14,7 @@ public class MusicPanel : BasePanel
public
override
void
OnInit
(
object
data
=
null
)
{
GetControl
<
Button
>(
"btnBack"
).
onClick
.
AddListener
(()
=>{
UIMgr
.
Getinstance
().
HidePanel
<
MusicPanel
>();
});
#
region
通过数据初始化面板
Dictionary
<
string
,
object
>
paras
=
new
Dictionary
<
string
,
object
>();
...
...
Assets/Scripts/Panel/TouchPanel.cs
View file @
ddc84216
...
...
@@ -27,6 +27,11 @@ public class TouchPanel : BasePanel
//将要生成的水果集合
private
Queue
<
int
>
InstantFruitList
=
new
Queue
<
int
>();
protected
override
void
Awake
()
{
base
.
Awake
();
EventCenter
.
Getinstance
().
AddUpdateListener
(
"RegisterPanel"
,
()=>
{
UIMgr
.
Getinstance
().
RegisterPanel
(
this
);
});
}
public
override
void
OnInit
(
object
data
=
null
)
{
cam
=
UIMgr
.
Getinstance
().
MainCamera
;
...
...
ProjectSettings/TagManager.asset
View file @
ddc84216
...
...
@@ -13,7 +13,7 @@ TagManager:
-
UI
-
-
-
-
Bot
-
-
-
...
...
@@ -41,3 +41,12 @@ TagManager:
-
name
:
Default
uniqueID
:
0
locked
:
0
-
name
:
Bot
uniqueID
:
1021235271
locked
:
0
-
name
:
Mid
uniqueID
:
933169827
locked
:
0
-
name
:
Top
uniqueID
:
2607583029
locked
:
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