void Update() { if (hookshot.IsHooked()) { boostEnabled = Input.GetButton("Fire2"); } else if (Vector3.Distance(hookshot.transform.position, hook.transform.position) > ropeProperties.maxLength) { hookshot.RetractRope(); } }
void FixedUpdate() { if (hookGun.IsHooked()) { transform.position = hookedObject.transform.position + hookedObject.transform.rotation * offsetToHookPoint; } }
private bool Flying() { return(hook.IsHooked() || hook.IsFlying()); }
public bool isHooked() { return(hookshotControl.IsHooked()); }