feat(): 完成控制台的2中发射信号的模式切换, 优化基本按钮和拉杆的表现

This commit is contained in:
2025-10-22 19:38:22 +08:00
parent 5198a80318
commit 7903e7fdbe
3 changed files with 71 additions and 12 deletions

View File

@@ -20,6 +20,16 @@ namespace Script.Gameplay.Facility
isPulled = !isPulled;
SendSignal(isPulled, this.gameObject);
// 可选:拉杆动画
if (isPulled)
{
// 旋转拉杆到下拉位置
transform.rotation = Quaternion.Euler(0f, 0f, 45f);
}
else
{
// 旋转拉杆回到初始位置
transform.rotation = Quaternion.Euler(0f, 0f, 0f);
}
//Debug.Log(isPulled ? "Lever pulled down" : "Lever reset");
}