৳͢ϨΠ • Physics.Raycast(ray, out hit) … ϨΠͱଞͷΦϒδΣΫτͱͷিಥఆΛߦ͏ɻhitʹ ͨͬͨΦϒδΣΫτͦͷҐஔ͕ೖΔɻ Ray ray = new Ray (camera.position, Camera.main.transform.forward); RaycastHit hit; if (Physics.Raycast (ray, out hit) && (hit.collider.gameObject == gameObject)) { // ͨͬͨ࣌ͷॲཧ }