feat(): 完成控制台的2中发射信号的模式切换, 优化基本按钮和拉杆的表现
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user