void ReceivePlayerControl() { //if (Input.GetKeyDown(KeyCode.G)) //{ // if (HookReady) // { // character.Perform("Hook", gameObject, null); // } //} if (Input.GetButtonDown("Fire1")) { if (aiming) { if (HookReady) { character.Perform("Hook", gameObject, null); } else { if (abilityNotReadyAudio) { abilityNotReadyAudio.Play(); } } } else if (AttackReady) { character.Perform("Attack", gameObject, null); } } if (Input.GetKeyDown(KeyCode.T)) { if (WarSenseReady) { character.Perform("WarSense", gameObject, null); } else { if (abilityNotReadyAudio) { abilityNotReadyAudio.Play(); } } } if (Input.GetMouseButton(1)) { if (!aiming) { if (character.CurrentState == CharacterState.Normal) { cameraFx.ActivateAimingPerspective(); if (aimLine) { aimLine.enabled = true; } aiming = true; } } } else { if (aiming) { cameraFx.Deactivate(); if (aimLine) { aimLine.enabled = false; } aiming = false; } } }