示例#1
0
        public Renderer GetIntersectedObjectForTester(IntersectionTester tester)
        {
            Renderer obj;

            m_IntersectedObjects.TryGetValue(tester, out obj);
            return(obj);
        }
示例#2
0
        internal Renderer GetIntersectedObjectForTester(IntersectionTester tester, out Vector3 contactPoint)
        {
            var intersection = m_IntersectedObjects[tester];

            contactPoint = intersection.contactPoint;
            return(intersection.renderer);
        }
        internal Renderer GetIntersectedObjectForTester(IntersectionTester tester)
        {
            Renderer obj = null;

            if (tester)
            {
                m_IntersectedObjects.TryGetValue(tester, out obj);
            }

            return(obj);
        }
示例#4
0
 void OnIntersectionExit(IntersectionTester tester, Renderer obj)
 {
     m_IntersectedObjects.Remove(tester);
 }
示例#5
0
 void OnIntersectionStay(IntersectionTester tester, Renderer obj)
 {
     m_IntersectedObjects[tester] = obj;
 }
示例#6
0
 public void AddTester(IntersectionTester tester)
 {
     m_IntersectedObjects.Clear();
     m_Testers.Add(tester);
 }
示例#7
0
 void OnIntersectionExit(IntersectionTester tester)
 {
     m_IntersectedObjects.Remove(tester);
 }
示例#8
0
 internal void AddTester(IntersectionTester tester)
 {
     m_Testers.Add(tester);
     m_IntersectedObjects[tester] = new DirectIntersection();
 }