Exemplo n.º 1
0
    private bool tryGetCloudAtPos(Vector3 pos, out PointCloudReferencer cloud)
    {
        if (pos.z == -1)
        {
            cloud = foragerCloud;
            return(true);
        }

        int frameID = (int)(pos.z / 2);

        if (frames.Count > frameID)
        {
            cloud = frames[frameID].beePointCloud;
            return(true);
        }

        cloud = null;
        return(false);
    }