示例#1
0
    void FixedUpdate()
    {
        Vector3 location     = rb.position;
        float   scanDistance = 2.5f;

        Collider[]   colliders   = Physics.OverlapSphere(location, 2.5f);
        GameObject[] gameObjects = FP.Map <Collider, GameObject>(Physics.OverlapSphere(location, scanDistance),
                                                                 GameObjectFromCollider);
    }