Everything related to chat functionality, and updating the projectile prefab to rotate properly
This commit is contained in:
parent
d92d00c83f
commit
66f84652dc
14 changed files with 1133 additions and 121 deletions
|
|
@ -132,7 +132,10 @@ namespace TD.Gameplay
|
|||
|
||||
// Escape: clear selection. Allowed during placement mode too — Escape never
|
||||
// means anything else here, and clearing selection during placement is fine.
|
||||
if (keyboard != null && keyboard.escapeKey.wasPressedThisFrame)
|
||||
// Suppressed while chat (or any HUD text field) has focus, since Escape there
|
||||
// means "cancel typing" and should not also clear the unit selection.
|
||||
if (keyboard != null && keyboard.escapeKey.wasPressedThisFrame
|
||||
&& !HUDController.IsTextInputActive)
|
||||
{
|
||||
SelectionState.Instance?.Clear();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue