Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
FastMail
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
wanqing
FastMail
Commits
296063c9
Commit
296063c9
authored
Jan 05, 2021
by
wanqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
爪子音效替换,移动区域修改
parent
7a128278
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
5 deletions
+7
-5
ChainRopeView.cs
FastMail/Assets/0A2_Scripts/Battle/View/ChainRopeView.cs
+4
-3
下放上升音效.mp3
FastMail/Assets/Res/Sounds/下放上升音效.mp3
+0
-0
下放上升音效.mp3.meta
FastMail/Assets/Res/Sounds/下放上升音效.mp3.meta
+1
-1
下放上升音效.wav
FastMail/Assets/Res/Sounds/下放上升音效.wav
+0
-0
BattleConfig.asset
FastMail/Assets/Resources/BattleConfig.asset
+2
-1
No files found.
FastMail/Assets/0A2_Scripts/Battle/View/ChainRopeView.cs
View file @
296063c9
...
@@ -73,7 +73,7 @@ public class ChainRopeView : MonoBehaviour
...
@@ -73,7 +73,7 @@ public class ChainRopeView : MonoBehaviour
private
bool
m_bIsClawUp
=
false
;
//是否爪子在上升
private
bool
m_bIsClawUp
=
false
;
//是否爪子在上升
//private AudioSource m_clawDownOrUpAudioSource;//下降上升音乐,需要循环播放
//private AudioSource m_clawDownOrUpAudioSource;//下降上升音乐,需要循环播放
private
bool
m_bControlPlayAudio
=
true
;
//控制播放音效
private
bool
m_bControlPlayAudio
=
true
;
//控制播放音效
private
float
m_MoveLimitY
;
//移动区域
void
Awake
()
void
Awake
()
{
{
...
@@ -103,6 +103,7 @@ public class ChainRopeView : MonoBehaviour
...
@@ -103,6 +103,7 @@ public class ChainRopeView : MonoBehaviour
m_outlinable
=
gameObject
.
GetComponent
<
Outlinable
>();
m_outlinable
=
gameObject
.
GetComponent
<
Outlinable
>();
StartCoroutine
(
AttachHook
());
StartCoroutine
(
AttachHook
());
m_MoveLimitY
=
Camera
.
main
.
WorldToScreenPoint
(
m_topCollider
.
transform
.
position
).
y
;
}
}
private
void
Start
()
private
void
Start
()
{
{
...
@@ -146,7 +147,7 @@ public class ChainRopeView : MonoBehaviour
...
@@ -146,7 +147,7 @@ public class ChainRopeView : MonoBehaviour
void
OnMove
(
Vector3
dir
)
void
OnMove
(
Vector3
dir
)
{
{
//移动区域
//移动区域
if
(
Input
.
mousePosition
.
y
>
Screen
.
height
/
2f
)
if
(
Input
.
mousePosition
.
y
>
m_MoveLimitY
)
{
{
return
;
return
;
}
}
...
@@ -239,7 +240,7 @@ public class ChainRopeView : MonoBehaviour
...
@@ -239,7 +240,7 @@ public class ChainRopeView : MonoBehaviour
void
OnTouchUp
()
void
OnTouchUp
()
{
{
//移动区域
//移动区域
if
(
Input
.
mousePosition
.
y
>
Screen
.
height
/
2f
)
if
(
Input
.
mousePosition
.
y
>
m_MoveLimitY
)
{
{
return
;
return
;
}
}
...
...
FastMail/Assets/Res/Sounds/下放上升音效.mp3
0 → 100644
View file @
296063c9
File added
FastMail/Assets/Res/Sounds/下放上升音效.
wav
.meta
→
FastMail/Assets/Res/Sounds/下放上升音效.
mp3
.meta
View file @
296063c9
fileFormatVersion: 2
fileFormatVersion: 2
guid:
f582290ca8df575409f8f5868dbeb6c6
guid:
af9c5feff8eb84b4fad6d020a56b9bd5
AudioImporter:
AudioImporter:
externalObjects: {}
externalObjects: {}
serializedVersion: 6
serializedVersion: 6
...
...
FastMail/Assets/Res/Sounds/下放上升音效.wav
deleted
100644 → 0
View file @
7a128278
File deleted
FastMail/Assets/Resources/BattleConfig.asset
View file @
296063c9
...
@@ -35,10 +35,11 @@ MonoBehaviour:
...
@@ -35,10 +35,11 @@ MonoBehaviour:
fifthLevelGoalName2
:
SM_Icon_Sword_01
fifthLevelGoalName2
:
SM_Icon_Sword_01
fifthLevelGoalName3
:
SM_Primitive_Sphere_02
fifthLevelGoalName3
:
SM_Primitive_Sphere_02
sixthLevelGoalName
:
SM_Primitive_Pyramid_01
sixthLevelGoalName
:
SM_Primitive_Pyramid_01
seventhLevelGoalName
:
SM_Primitive_Cube_04 (1)
audioConfig
:
audioConfig
:
failList
:
failList
:
-
{
fileID
:
8300000
,
guid
:
03522ac8d99167f45ac598927093c79e
,
type
:
3
}
-
{
fileID
:
8300000
,
guid
:
03522ac8d99167f45ac598927093c79e
,
type
:
3
}
-
{
fileID
:
8300000
,
guid
:
18755c9489da3654db451b917f8ecd81
,
type
:
3
}
-
{
fileID
:
8300000
,
guid
:
18755c9489da3654db451b917f8ecd81
,
type
:
3
}
GameBgm
:
{
fileID
:
8300000
,
guid
:
75b73601c36cb92418c2f0e6a18de5e2
,
type
:
3
}
GameBgm
:
{
fileID
:
8300000
,
guid
:
75b73601c36cb92418c2f0e6a18de5e2
,
type
:
3
}
Success
:
{
fileID
:
8300000
,
guid
:
7fbb2321d82ed1d4d9f4e4707a25d007
,
type
:
3
}
Success
:
{
fileID
:
8300000
,
guid
:
7fbb2321d82ed1d4d9f4e4707a25d007
,
type
:
3
}
clawDownOrUp
:
{
fileID
:
8300000
,
guid
:
f582290ca8df575409f8f5868dbeb6c6
,
type
:
3
}
clawDownOrUp
:
{
fileID
:
8300000
,
guid
:
af9c5feff8eb84b4fad6d020a56b9bd5
,
type
:
3
}
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