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