Cozy Wather + buld systeme
This commit is contained in:
@@ -69,11 +69,13 @@ namespace Ashwild.Player
|
||||
|
||||
/// <summary>
|
||||
/// Requests the construction menu to open/close on right-click, gated by lock and
|
||||
/// cooldown. The UI decides whether that opens or closes it.
|
||||
/// cooldown. While a ghost is being positioned, right-click cancels the placement instead
|
||||
/// (handled by the placement controller), so the menu is left alone here.
|
||||
/// </summary>
|
||||
private void HandleSecondaryUse()
|
||||
{
|
||||
if (PlayerEvents.InputLocked) return;
|
||||
if (PlayerEvents.IsPlacingBuild) return;
|
||||
if (Time.time < nextToggleTime) return;
|
||||
|
||||
nextToggleTime = Time.time + toggleCooldown;
|
||||
|
||||
Reference in New Issue
Block a user