示例#1
0
    public void findcenterPoint()
    {
        pcReturn = pc.FindClosestPointGameObject(sphere.transform, 1);

        //Debug.Log (pcReturn);
        //nearestPoint.text = pcReturn.ToString ();

        if (pcReturn < .2f)
        {
            currentMat.color = new Vector4(1, .92f, .016f, .5f);
        }
        else
        {
            currentMat.color = new Vector4(1, 1, 1, .5f);
        }
    }