예제 #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();
 }