added better keyboard inputs
This commit is contained in:
parent
facb2b51fe
commit
9394a19172
@ -120,7 +120,6 @@ public class AIEntity : Entity {
|
|||||||
RaycastHit2D hit = Physics2D.Raycast(transform.position, direction, attackRange, (1 << LayerMask.NameToLayer("Safezone")));//Layer 6 is safeZone
|
RaycastHit2D hit = Physics2D.Raycast(transform.position, direction, attackRange, (1 << LayerMask.NameToLayer("Safezone")));//Layer 6 is safeZone
|
||||||
Physics2D.queriesHitTriggers = true;
|
Physics2D.queriesHitTriggers = true;
|
||||||
if(!(hit.collider is null)){ //We have hit the safe zone
|
if(!(hit.collider is null)){ //We have hit the safe zone
|
||||||
Debug.Log("hit");
|
|
||||||
isAvoiding = true;
|
isAvoiding = true;
|
||||||
Vector3 avoidDir = Vector3.zero;
|
Vector3 avoidDir = Vector3.zero;
|
||||||
//Between top and bottom
|
//Between top and bottom
|
||||||
|
|||||||
@ -238,7 +238,18 @@
|
|||||||
{
|
{
|
||||||
"name": "",
|
"name": "",
|
||||||
"id": "d325e36d-0a45-4f07-968e-7d1f67d80899",
|
"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": "",
|
"interactions": "",
|
||||||
"processors": "",
|
"processors": "",
|
||||||
"groups": "Keyboard&Mouse",
|
"groups": "Keyboard&Mouse",
|
||||||
@ -312,6 +323,17 @@
|
|||||||
"isComposite": false,
|
"isComposite": false,
|
||||||
"isPartOfComposite": true
|
"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": "",
|
"name": "",
|
||||||
"id": "4715f838-717a-4f10-a668-05a6d761a7bc",
|
"id": "4715f838-717a-4f10-a668-05a6d761a7bc",
|
||||||
@ -388,6 +410,17 @@
|
|||||||
"action": "Throw",
|
"action": "Throw",
|
||||||
"isComposite": false,
|
"isComposite": false,
|
||||||
"isPartOfComposite": false
|
"isPartOfComposite": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "",
|
||||||
|
"id": "70991f2d-c585-4b19-bf50-8c9757aab592",
|
||||||
|
"path": "<Mouse>/rightButton",
|
||||||
|
"interactions": "",
|
||||||
|
"processors": "",
|
||||||
|
"groups": "Keyboard&Mouse",
|
||||||
|
"action": "Throw",
|
||||||
|
"isComposite": false,
|
||||||
|
"isPartOfComposite": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user