修复之前遗留的bug

This commit is contained in:
huyulong 2024-11-18 17:19:35 +08:00
parent 6bbdfc0a8e
commit ab62d3f646
3 changed files with 9 additions and 3 deletions

View File

@ -99,6 +99,8 @@ public class CharacterControl : MonoBehaviour
}
}
//移动走、奔跑键盘or手柄控制
void Move()
{

View File

@ -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))
{

View File

@ -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>();
}
}