修复之前遗留的bug
This commit is contained in:
parent
6bbdfc0a8e
commit
ab62d3f646
@ -99,6 +99,8 @@ public class CharacterControl : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//移动,走、奔跑,键盘or手柄控制
|
||||
void Move()
|
||||
{
|
||||
|
@ -18,7 +18,7 @@ public class UseSkill : MonoBehaviour
|
||||
private Skill_Pick skill_Pick;
|
||||
private Skill_Jump skill_Jump;
|
||||
private Skill_watering skill_Watering;
|
||||
|
||||
//Fire fire = new Fire();
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
@ -66,7 +66,10 @@ public class UseSkill : MonoBehaviour
|
||||
}
|
||||
if (Input.GetMouseButtonDown(0))
|
||||
{
|
||||
|
||||
skill_Watering.StartWatering(currentItem);
|
||||
|
||||
|
||||
}
|
||||
if (Input.GetMouseButtonUp(0))
|
||||
{
|
||||
|
@ -29,13 +29,13 @@ public class Fire : MonoBehaviour
|
||||
|
||||
void Update()
|
||||
{
|
||||
|
||||
MieFire();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void MieFire()
|
||||
public void MieFire()
|
||||
{
|
||||
// 쇱꿴鯤소角뤠瞳렀鍋코할객遼췻삽숩
|
||||
if (isPlayerInRange && Input.GetMouseButton(0))
|
||||
@ -89,6 +89,7 @@ public class Fire : MonoBehaviour
|
||||
{
|
||||
isPlayerInRange = true; // 鯤소쏵흙렀鍋
|
||||
characterControl = other.GetComponent<CharacterControl>();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user