コード例 #1
0
        private bool IsInLineOfSight(GameObject target)
        {
            RaycastHit hit;

            return(PositionUtil.RayFromToHitOnlyTerrain(gameObject.transform.position, target.transform.position,
                                                        out hit));
        }