Exemplo n.º 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();
     }
 }
Exemplo n.º 2
0
 void FixedUpdate()
 {
     if (hookGun.IsHooked())
     {
         transform.position = hookedObject.transform.position + hookedObject.transform.rotation * offsetToHookPoint;
     }
 }
Exemplo n.º 3
0
 private bool Flying()
 {
     return(hook.IsHooked() || hook.IsFlying());
 }
Exemplo n.º 4
0
 public bool isHooked()
 {
     return(hookshotControl.IsHooked());
 }