Update double input issues, pigman is no longer unbound, limit his weapon access too
This commit is contained in:
@@ -51,11 +51,16 @@ namespace Minigames.FortFight.Projectiles
|
||||
indicator.SetActive(true);
|
||||
}
|
||||
|
||||
// Register with InputManager to capture tap-to-drop
|
||||
if (Input.InputManager.Instance != null)
|
||||
// Only register with InputManager if NOT AI-controlled
|
||||
// AI projectiles should not accept player input
|
||||
if (!IsAIControlled && Input.InputManager.Instance != null)
|
||||
{
|
||||
Input.InputManager.Instance.RegisterOverrideConsumer(this);
|
||||
Logging.Debug("[CeilingFanProjectile] Tap-to-drop now available");
|
||||
Logging.Debug("[CeilingFanProjectile] Tap-to-drop now available (Player controlled)");
|
||||
}
|
||||
else if (IsAIControlled)
|
||||
{
|
||||
Logging.Debug("[CeilingFanProjectile] AI-controlled projectile, input disabled");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user