Commit 296063c9 authored by wanqing's avatar wanqing

爪子音效替换,移动区域修改

parent 7a128278
......@@ -73,7 +73,7 @@ public class ChainRopeView : MonoBehaviour
private bool m_bIsClawUp = false;//是否爪子在上升
//private AudioSource m_clawDownOrUpAudioSource;//下降上升音乐,需要循环播放
private bool m_bControlPlayAudio = true;//控制播放音效
private float m_MoveLimitY;//移动区域
void Awake()
{
......@@ -103,6 +103,7 @@ public class ChainRopeView : MonoBehaviour
m_outlinable = gameObject.GetComponent<Outlinable>();
StartCoroutine(AttachHook());
m_MoveLimitY = Camera.main.WorldToScreenPoint(m_topCollider.transform.position).y;
}
private void Start()
{
......@@ -146,7 +147,7 @@ public class ChainRopeView : MonoBehaviour
void OnMove(Vector3 dir)
{
//移动区域
if (Input.mousePosition.y > Screen.height / 2f)
if (Input.mousePosition.y > m_MoveLimitY)
{
return;
}
......@@ -239,7 +240,7 @@ public class ChainRopeView : MonoBehaviour
void OnTouchUp()
{
//移动区域
if (Input.mousePosition.y > Screen.height / 2f)
if (Input.mousePosition.y > m_MoveLimitY)
{
return;
}
......
fileFormatVersion: 2
guid: f582290ca8df575409f8f5868dbeb6c6
guid: af9c5feff8eb84b4fad6d020a56b9bd5
AudioImporter:
externalObjects: {}
serializedVersion: 6
......
......@@ -35,10 +35,11 @@ MonoBehaviour:
fifthLevelGoalName2: SM_Icon_Sword_01
fifthLevelGoalName3: SM_Primitive_Sphere_02
sixthLevelGoalName: SM_Primitive_Pyramid_01
seventhLevelGoalName: SM_Primitive_Cube_04 (1)
audioConfig:
failList:
- {fileID: 8300000, guid: 03522ac8d99167f45ac598927093c79e, type: 3}
- {fileID: 8300000, guid: 18755c9489da3654db451b917f8ecd81, type: 3}
GameBgm: {fileID: 8300000, guid: 75b73601c36cb92418c2f0e6a18de5e2, type: 3}
Success: {fileID: 8300000, guid: 7fbb2321d82ed1d4d9f4e4707a25d007, type: 3}
clawDownOrUp: {fileID: 8300000, guid: f582290ca8df575409f8f5868dbeb6c6, type: 3}
clawDownOrUp: {fileID: 8300000, guid: af9c5feff8eb84b4fad6d020a56b9bd5, type: 3}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment