示例#1
0
    public List <SimplePart> GetNearby(float distance)
    {
        CellGroup cg = transform.parent.GetComponent <CellGroup>();

        if (cg == null)
        {
            return(new List <SimplePart>());
        }
        else
        {
            return(cg.GetNearby(this, distance));
        }
    }