コード例 #1
0
        // Methods
        public override int HandleGizmoHover(Ray cameraRay)
        {
            int   num   = -1;
            float num2  = 0.25f;
            int   count = _handles.Count;

            for (int i = 0; i < count; i++)
            {
                float num5 = Mathfx.DistanceToRay(cameraRay, _handles[i].position);
                if (num5 < num2)
                {
                    num  = i;
                    num2 = num5;
                }
            }
            return(num);
        }