im having a problem, which i think might be that im not looking for the layer that the raycast is hitting, correctly
if (raycastHit.transform.gameObject.layer == groundMask)
{
Debug.Log("heavy");
state = State.HookShotFlyingPlayer;
}
No syntax problem, but a problem with unity. Its giving an error on
(raycastHit.transform.gameObject.layer == groundMask)
the error being
Object Reference not set to an instance of an object