added better keyboard inputs

This commit is contained in:
Soulaha Balde 2022-04-03 16:58:31 -04:00
parent facb2b51fe
commit 9394a19172
2 changed files with 34 additions and 2 deletions

View File

@ -120,7 +120,6 @@ public class AIEntity : Entity {
RaycastHit2D hit = Physics2D.Raycast(transform.position, direction, attackRange, (1 << LayerMask.NameToLayer("Safezone")));//Layer 6 is safeZone
Physics2D.queriesHitTriggers = true;
if(!(hit.collider is null)){ //We have hit the safe zone
Debug.Log("hit");
isAvoiding = true;
Vector3 avoidDir = Vector3.zero;
//Between top and bottom

View File

@ -238,7 +238,18 @@
{
"name": "",
"id": "d325e36d-0a45-4f07-968e-7d1f67d80899",
"path": "<Keyboard>/e",
"path": "<Keyboard>/f",
"interactions": "",
"processors": "",
"groups": "Keyboard&Mouse",
"action": "Suck",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "6d6b0cf1-60af-4bf9-bb3d-5ed163e669fc",
"path": "<Mouse>/leftButton",
"interactions": "",
"processors": "",
"groups": "Keyboard&Mouse",
@ -312,6 +323,17 @@
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "",
"id": "cc59ae2e-998f-4c7b-a5cc-4a164aedfe2d",
"path": "<Mouse>/scroll/y",
"interactions": "",
"processors": "",
"groups": "Keyboard&Mouse",
"action": "SwitchMinion",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "4715f838-717a-4f10-a668-05a6d761a7bc",
@ -388,6 +410,17 @@
"action": "Throw",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "70991f2d-c585-4b19-bf50-8c9757aab592",
"path": "<Mouse>/rightButton",
"interactions": "",
"processors": "",
"groups": "Keyboard&Mouse",
"action": "Throw",
"isComposite": false,
"isPartOfComposite": false
}
]
},