diff --git a/MrBigsock/Assets/Code/Core/Abilities/Base/FireType.cs.meta b/MrBigsock/Assets/Code/Core/Abilities/Base/FireType.cs.meta new file mode 100644 index 0000000000000000000000000000000000000000..d3c24c15c5b3b42c50d0da3304a7766481824280 --- /dev/null +++ b/MrBigsock/Assets/Code/Core/Abilities/Base/FireType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a4433520002352142bf81c89a15742f3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/MrBigsock/Assets/Code/PlayerController.cs b/MrBigsock/Assets/Code/PlayerController.cs index 1ec0c444c1b556b1ab82bbfab777f3f7f46b6d91..6fd71277784eba75697aaec4458e9630de9b5ad3 100644 --- a/MrBigsock/Assets/Code/PlayerController.cs +++ b/MrBigsock/Assets/Code/PlayerController.cs @@ -124,6 +124,7 @@ namespace BigSock { /* Triggers an ability if it should be. + Need to add support for mouse buttons n shiet */ private void CheckAbilityInput(KeyCode key, IAbility ability) { var par = GetAbilityParam(Camera.main.ScreenToWorldPoint(Input.mousePosition)); @@ -144,7 +145,8 @@ namespace BigSock { // If let go: Activate else if(Input.GetKeyUp(key)) { par.ChargeTime = Time.time - chargeStarts[key]; - ability.Use(par); + var t = ability.Use(par); + if(!t) Debug.Log($"[PlayerController.CheckAbilityInput({key})] {ability.Name} not fired ({par.ChargeTime}/{ability.MinCharge})"); } break; default: @@ -176,6 +178,12 @@ namespace BigSock { CheckAbilityInput(KeyCode.Z, _testAttack2); // Check ability 3. CheckAbilityInput(KeyCode.X, _dodge); + + + //if(Input.GetKeyDown(KeyCode.Z)) Debug.Log($"[PlayerController.Update()] Z was pressed."); + //if(Input.GetKeyUp(KeyCode.Z)) Debug.Log($"[PlayerController.Update()] Z was let go."); + //if(Input.GetKeyUp(KeyCode.UpArrow)) Debug.Log($"[PlayerController.Update()] UpArrow was let go."); + //if(Input.GetKeyUp(KeyCode.Space)) Debug.Log($"[PlayerController.Update()] Space was let go."); //// If pressed Z: Big attack. //if(Input.GetKey(KeyCode.Z)) {