private bool IsInLineOfSight(GameObject target) { RaycastHit hit; return(PositionUtil.RayFromToHitOnlyTerrain(gameObject.transform.position, target.transform.position, out hit)); }